Fix for issue #1, removed use of subprocess.Popen with shell=True