Example implementation of an API in Python/Flask