cleanup python server