def fix_win_codec():
 try:
  codecs.lookup('cp65001')
  return False
 except LookupError:
  codecs.register((lambda name: (((name == 'cp65001') and codecs.lookup('utf-8')) or None)))
  return True

def fix_win_codec ( ) : try : codecs . lookup ( 'cp65001' ) return False except LookupError : codecs . register ( ( lambda name : ( ( ( name == 'cp65001' ) and codecs . lookup ( 'utf-8' ) ) or None ) ) ) return True
works around <URL .