How to use openai api in python