Fix this not working on python 2.6