How to create REST APIs with Python