docs: def set_country_map(cfrom, cto, name=None, replace=True):
      '''
      Set a mapping between a country code to another code
      '''
      global _country_maps
      cdb = countries()
      cfrom = str(cfrom).upper()
      c = cdb.get(cfrom)
      if c:
          if name:
              c = name
          cto = str(cto).upper()
          if cto in cdb:
              raise CountryError('Country %s already in database' % cto)
          cdb[cto] = c
          _country_maps[cfrom] = cto
          ccys = currencydb()
          cccys = countryccys()
          ccy = cccys[cfrom]
          cccys[cto] = ccy
  
          # If set, remove cfrom from database
          if replace:
              ccy = ccys.get(ccy)
              ccy.default_country = cto
              cdb.pop(cfrom)
              cccys.pop(cfrom)
      else:
          raise CountryError('Country %s not in database' % c)