Fixed the server.py. End of client request was not properly getting detected.