generalizing script
Refactor out some transifex functions