Refactoring code...everything under server.py