KEGG update - Fix misc Python 3 problems

When the original branch was written, I think we still used 2to3.