set locale = 'C' for python 2