Update server.py

Used http://stackoverflow.com/questions/8315209/sending-http-headers-with-python