def parseParam(line):
 if (line == ''):
  return (None, '')
 elif (line[0] != '"'):
  mode = 1
 else:
  mode = 2
 res = ''
 io = StringIO(line)
 if (mode == 2):
  io.read(1)
 while 1:
  a = io.read(1)
  if (a == '"'):
   if (mode == 2):
    io.read(1)
    return (res, io.read())
  elif (a == '\\'):
   a = io.read(1)
   if (a == ''):
    return (None, line)
  elif (a == ''):
   if (mode == 1):
    return (res, io.read())
   else:
    return (None, line)
  elif (a == ' '):
   if (mode == 1):
    return (res, io.read())
  res += a

def parseParam ( line ) : if ( line == '' ) : return ( None , '' ) elif ( line [ 0 ] != '"' ) : mode = 1 else : mode = 2 res = '' io = StringIO ( line ) if ( mode == 2 ) : io . read ( 1 ) while 1 : a = io . read ( 1 ) if ( a == '"' ) : if ( mode == 2 ) : io . read ( 1 ) return ( res , io . read ( ) ) elif ( a == '\\' ) : a = io . read ( 1 ) if ( a == '' ) : return ( None , line ) elif ( a == '' ) : if ( mode == 1 ) : return ( res , io . read ( ) ) else : return ( None , line ) elif ( a == ' ' ) : if ( mode == 1 ) : return ( res , io . read ( ) ) res += a
chew one dqstring or atom from beginning of line and return .