Improve compatibility with 3.x.
Python 3 compatibility. Blech.