cleaning up Flask example