code: def shlex_quotes(value):
      '''see http://stackoverflow.com/questions/6868382/python-shlex-split-ignore-single-quotes'''
      lex = shlex.shlex(value)
      lex.quotes = '"'
      lex.whitespace_split = True
      lex.commenters = ''
      return list(lexf shlex_quotes(value):
      '''see http://stackoverflow.com/questions/6868382/python-shlex-split-ignore-single-quotes'''
      lex = shlex.shlex(value)
      lex.quotes = '"'
      lex.whitespace_split = True
      lex.commenters = ''
      return list(lex)
docs: see http://stackoverflow.com/questions/6868382/python-shlex-split-ignore-single-quotes