Python 3 compatibility. No major test failures but use with discretion.