client / server example converted to python3 syntax