I was going to say maybe use shlex.quote(), but then I realised you could probably cut out the middle man and do

```python
return [cmd] + shlex.split(args)
```

if you got rid of the backslash escaping stuff for _cmd_ further up.