A simple login example with Python (using Tornado Framework, from Facebook)