Expanded the translate() function to handle reverse conversion back to Python structures.
Authored by: bugman 2010-10-22
Parent: [r75]
Child: [r77]