def output(jack_class, output_type): if output_type is 'test': return jack_class if output_type != 'xml': raise ValueError( 'Incorrect output type received. Available types: xml') if output_type is 'xml': print('Main -- outputting xml\n\n') return XMLConverter.convert_class(jack_class)