def cummingsify(poem):
 def success():
  return poem.lower()
 def gibberish():
  raise GibberishError()
 def bug():
  raise CannotCummingsify(poem)
 return random.choice([success, gibberish, bug])()

def cummingsify ( poem ) : def success ( ) : return poem . lower ( ) def gibberish ( ) : raise GibberishError ( ) def bug ( ) : raise CannotCummingsify ( poem ) return random . choice ( [ success , gibberish , bug ] ) ( )
randomly do one of the following: 1 .