Python run program and get output, environ to force inspect mode on program termination