Can we upload Python files and call functions within those files?

I have some game type information and wanted to make funtions around the game logic to enhance the types of questions I can ask. Is it possible to do this, maybe with the code intepretation?

…time passes…
So, when I added my code as a class and referred to it, not with the actual filename but with the alphanumeric code given by openai, I was able to access my functions.