Merge branch 'pyg-pipe'. Closes issue #14.

Pipe to Python process instead of repeatedly shelling out.