Small changes so code works in Python 3.x