def collect_attributes(attributes, *containers):
 collected = []
 if attributes:
  collected += attributes
 for container in containers:
  if container:
   collected += container.all_attributes
 return collected

def collect_attributes ( attributes , * containers ) : collected = [ ] if attributes : collected += attributes for container in containers : if container : collected += container . all_attributes return collected
collect attributes from arguments .