I\'m pretty new to python, so forgive me if I am missing an obvious built-in function.
I have a dictionary mapping I generated like the following:
di
You are overlooking the translate function. See here for a usage example.