Added TransRealMixin to fix i18n global state pollution in the test suite

Tests pass on Python 2.7 and 3.3.