server.py: hide away complexity of sending a stream or private reply in a function