pymel.core.windows.currentParent

static windows.currentParent()

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