python server code updates