Python wrapper for xlocale