Realtime chat application in Flask