fixed shell argument parsing
fix flake8
Merge pull request #666 from johnnoone/shell-failure

fix shell=True