updated PyServer class to work with new response class