Translate page titles in Python code