Moved to Python 2.7 from Python 3.3 and made some changes because of that.