Flask utility helpers

Change-Id: I5f1f8446cc0ee03e234e769c2c3cdd8cd128e1c9