code: def read_input(self, input_cls, filename, **kwargs):
          
          input_inst = input_cls()
          input_inst.read_input(filename)
          return input_inst.get_data()
docs: Read in input and do some minimal preformatting
          input_cls - the class to use to read the input
          filename - input filename