fixing compile errors on python 3.3

Just running a couple 2to3 filters. Should be good for python 2.6 - 3.x