'Returns the closest parent of this Tag that matches the given
criteria.'

def find_parent(self, name=None, attrs={}, **kwargs):

    r = None
    l = self.find_parents(name, attrs, 1, **kwargs)
    if l:
        r = l[0]
    return r
