Python implementation of sessions with Tornado web server and memcached