Update utils.py

Resolves #45

The underlying issue is that `testApi.py` was missing `from flask import Flask` which was being masked by changes from #24