Create homeserver.py

server code