stop hardcoding python path, better ipc error checking