pymel.core.windows.currentParent

currentParent()

shortcut for ui.PyUI(setParent(q=1))