def isroutine(object):
 return (isbuiltin(object) or isfunction(object) or ismethod(object) or ismethoddescriptor(object))

def isroutine ( object ) : return ( isbuiltin ( object ) or isfunction ( object ) or ismethod ( object ) or ismethoddescriptor ( object ) )
return true if the object is any kind of function or method .