python3 fixes
remove unused code (thanks SalamancanMango!)