Adding Flask example, mostly unmodified.