def delocalize(string):
 conv = localeconv()
 ts = conv['thousands_sep']
 if ts:
  string = string.replace(ts, '')
 dd = conv['decimal_point']
 if dd:
  string = string.replace(dd, '.')
 return string

def delocalize ( string ) : conv = localeconv ( ) ts = conv [ 'thousands_sep' ] if ts : string = string . replace ( ts , '' ) dd = conv [ 'decimal_point' ] if dd : string = string . replace ( dd , '.' ) return string
parses a string as a normalized number according to the locale settings .