implement server sent events with flask