def is_abstract_method(attr):
 return (hasattr(attr, '__isabstractmethod__') and getattr(attr, '__isabstractmethod__'))

def is_abstract_method ( attr ) : return ( hasattr ( attr , '__isabstractmethod__' ) and getattr ( attr , '__isabstractmethod__' ) )
returns true if the given object has __isabstractmethod__ == true .