import locale
old_locale = locale.getlocale()
old_locale
('en_US', 'UTF-8')
locale.setlocale(locale.LC_ALL, 'es_ES')
'es_ES'
locale.localeconv()
{'currency_symbol': 'Eu', 'decimal_point': ',', 'frac_digits': 2, 'grouping': [127], 'int_curr_symbol': 'EUR ', 'int_frac_digits': 2, 'mon_decimal_point': ',', 'mon_grouping': [3, 3, 0], 'mon_thousands_sep': '.', 'n_cs_precedes': 0, 'n_sep_by_space': 1, 'n_sign_posn': 1, 'negative_sign': '-', 'p_cs_precedes': 0, 'p_sep_by_space': 1, 'p_sign_posn': 1, 'positive_sign': '', 'thousands_sep': ''}
locale.currency(1500)
'1500,00 Eu'
locale.setlocale(locale.LC_ALL, old_locale)
'en_US.UTF-8'