def _isSequence(obj):
 mType = type(obj)
 return ((mType is list) or (mType is tuple))

def _isSequence ( obj ) : mType = type ( obj ) return ( ( mType is list ) or ( mType is tuple ) )
helper function to determine if a function is a list or sequence .