Fix Python 3.x issues. Python 3 certainly has a way with making errors worse than they seem..