How to create a translator using python