Server.py updated to support proper client-server comm.