I just removed the shell=True and switched to using a list in scpeters@e99145a. In previous attempts, I had never tried without shell=True, and it only worked as a string with whitespace. It does work, however, with a list and shell=False.