import inspect


def is_method(attribute):
    """ Determines if the given attribute is most likely a method. It's
    approximative since from Python 3 there are no more unbound methods. """
    return inspect.isfunction(attribute) and "." in attribute.__qualname__ \
        and inspect.getfullargspec(attribute).args[:1] == ['self']