Changed all server.py to factory.py (I blame aera)