how to create text translator in python