Py2.6 fix, UnitBytes fix.

Forgot to change if statements in UnitBytes. Fixed that bug.
Changed the way locale is set in tests.