def _arguments_as_list(arguments):
try:<EOL><INDENT>arguments_list = shlex.split(arguments)<EOL><DEDENT>except ValueError:<EOL><INDENT>arguments_list = arguments<EOL><DEDENT>return arguments_list<EOL>
Return the arguments as a list as expected by subprocess.Popen.

The arguments can be provided as a string that will be spitted to a list.
They can also be provided as a list, then the list will be returned
untouched.