Move stuff off the main.py to subdirectories