simple chat application in flask - python