python server utilities