add flask demo code