Optimized transifex script and add error handler