make it run in python 2.7