A restful API service in python