Fixed logout button on Python 2.6