Flask pub/sub app using Server Sent Events and Bootstrap 3