tried to migrate to python2.7 but its a pain