from mysite.interpreter import Interpreter from mysite.utils import set_environment_variables def chat_with_interpreter(message, history, a=None, b=None, c=None, d=None): set_environment_variables() # ...