python server for data gathering