def firstParent2(self, **kwargs):


        kwargs['parent'] = True
        kwargs.pop('p',None)
        #if longNames:
        kwargs['fullPath'] = True
        kwargs.pop('f',None)

        try:
            res = cmds.listRelatives( self, **kwargs)[0]
        except TypeError:
            return None

        res = general.PyNode( res )
        return res
unlike the firstParent command which determines the parent via string formatting, this
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/DagNode.firstParent2