python2.6 compatibility and custom locale settings
Merge pull request #1 from prymitive/master

python2.6 compatibility and custom locale settings