def cmd_line(args):
 args = [str(x) for x in args]
 return ' '.join((pipes.quote(x) for x in args))

def cmd_line ( args ) : args = [ str ( x ) for x in args ] return ' ' . join ( ( pipes . quote ( x ) for x in args ) )
build a command line that works in a shell .