def line_to_tuple(line):
 kv = line.split(',')[0].split(':')
 (k, v) = (kv[0].strip(' "'), kv[1].strip(' "'))
 return (k, v)

def line_to_tuple ( line ) : kv = line . split ( ',' ) [ 0 ] . split ( ':' ) ( k , v ) = ( kv [ 0 ] . strip ( ' "' ) , kv [ 1 ] . strip ( ' "' ) ) return ( k , v )
convert a single line of the .