Split up all the functions, spread them across multiple files, etc. So when changing something PyCharm inspection doesn't take nearly as long and to just make it easier. The sheer volume of stuff previously made it difficult.

I hadn't done this previously as well due to some issues with PyInstaller which magically went away.