You can use a string with whitespace if shell=True, It would be clearer to drop the list. If you have a multi-element list with whitespace it seems to drop the following elements in the list.