How to translate a document with Python?

How to translate a document with Python?