revert accidental removal of python MR code in 46406d75df05375dd42cddad1ba3e00c1b818961