Implementing the python2.6 hack