def UnpackPlacemark(value):
 pm_values = []
 for x in value.split(','):
  try:
   decoded_x = base64hex.B64HexDecode(x.rstrip('='), padding=False).decode('utf-8')
  except:
   decoded_x = ''
  pm_values.append(decoded_x)
 return Placemark(*pm_values)

def UnpackPlacemark ( value ) : pm_values = [ ] for x in value . split ( ',' ) : try : decoded_x = base64hex . B64HexDecode ( x . rstrip ( '=' ) , padding = False ) . decode ( 'utf-8' ) except : decoded_x = '' pm_values . append ( decoded_x ) return Placemark ( * pm_values )
converts from a comma-separated .