Designing a RESTful API with Python and Flask