def _extract_key_val(kv, delimiter='='):
 pieces = kv.split(delimiter)
 key = pieces[0]
 val = delimiter.join(pieces[1:])
 return (key, val)

def _extract_key_val ( kv , delimiter = '=' ) : pieces = kv . split ( delimiter ) key = pieces [ 0 ] val = delimiter . join ( pieces [ 1 : ] ) return ( key , val )
extract key and value from key=val string .