Made App.py for main event loop