backported fix for python multiapp