getOutput() for python only