python gpt function calling finance