changed from python 3 back to python 2