Update server.py

added HTTP emulation