Tools compatible with both 2.7 and 3.x python, merge from py3 with some edits
Authored by: klaussfreire 2013-03-17
Parent: [r13576]
Child: [r13578]