How do I compile a game built in panda3d version 1.10.0? (Solved)

As a friendly heads up, you should avoid using the global statement and avoid opening files without using with.