Fix for issue #14. The problem was that were were just changing the working directory, and so when one thread changed it, the other thread would unknowingly not be in the expected direcotry. The fix was to simply pass the cwd to the python subprocess.