Prototype python/flask implementation