How to create a RESTful API in Python