def sequentially(changes, sleep_when_empty=timedelta(seconds=60)):
 if all((isinstance(c, NoOp) for c in changes)):
  sleep = (min((c.sleep for c in changes)) if changes else sleep_when_empty)
  return NoOp(sleep=sleep)
 return _Sequentially(changes=changes)

def sequentially ( changes , sleep_when_empty = timedelta ( seconds = 60 ) ) : if all ( ( isinstance ( c , NoOp ) for c in changes ) ) : sleep = ( min ( ( c . sleep for c in changes ) ) if changes else sleep_when_empty ) return NoOp ( sleep = sleep ) return _Sequentially ( changes = changes )
run a series of changes in sequence .