updated to Python 2.7