Encrypted chat application with Python and Tornado