polib allows you to manipulate, create, modify gettext files (pot, po and mo files). You can load existing files, iterate through it's entries, add, modify entries, comments or metadata, etc... or create new po files from scratch. polib supports out of the box any version of python ranging from 2.4 to latest 3.X version. Optional dependency: Sphinx