make it run with python2.7