Create server.py

this is the server part of the app