Flask app for realtime updates