Fixed errors in server.py, added config to config.py