examples/flask: real fix for Python 3.3 that also works with 2.7