Allow forwarding of env and shell arguments to Popen
Add fancy expand_args helper