Process a file of rest and return list of dicts

def interpret(self, infile):
        """ Process a file of rest and return list of dicts """

        data = []

        for record in self.generate_records(infile):
            data.append(record)

        return data