changes to compile with python 3.3

changes to compile with python 3.3