Checks if the first argument to the method is 'self'.

def is_member_function(f):
    """ Checks if the first argument to the method is 'self'. """
    f_args, f_varargs, f_varkw, f_defaults = inspect.getargspec(f)
    return 1 if 'self' in f_args else 0