Corrected bottlesession.py so that it actually works (tested on python 2.7.3 and 3.2.3 on Ubuntu).