Fix to compile to python2.7