python flask example following miguel examples