Using full path to Python in popen call

This is the root of the problem in issue #577.

Fixes #577.