Add network constants
Fix server.py to use Engine.

Small changes in client.py