When an EOF is sent, pipe should not try to free NULL.
Work around insane distros which default `python` to python3
Cherry picked 1774efba106c759c3e741d1b4e90cfdc9a210e65 from crashey
Cleaned up fix for issue #4