'Gross hack to contort loader to deal w/ load_*()\'s bad API.'

def get_data(self, path):

    if (self.file and (path == self.path)):
        if (not self.file.closed):
            file = self.file
        else:
            self.file = file = open(self.path, 'r')
        with file:
            return file.read()
    else:
        return super().get_data(path)
