def generate_messages(framer, options):
 messages = (_request_messages if (options.messages == 'tx') else _response_messages)
 for message in messages:
  message = message(**_arguments)
  print ('%-44s = ' % message.__class__.__name__),
  packet = framer.buildPacket(message)
  if (not options.ascii):
   packet = (packet.encode('hex') + '\n')
  print packet,

def generate_messages ( framer , options ) : messages = ( _request_messages if ( options . messages == 'tx' ) else _response_messages ) for message in messages : message = message ( ** _arguments ) print ( '%-44s = ' % message . __class__ . __name__ ) , packet = framer . buildPacket ( message ) if ( not options . ascii ) : packet = ( packet . encode ( 'hex' ) + '\n' ) print packet ,
a helper method to parse the command line options .