Update utils.py

Resolves #45

The underlying issue is that the test case in #45 was not importing Flask which was being masked by the use of `__call__`

I believe this was introduced via #24