def normalize(self, value):
        if isinstance(value, Rating) and not isinstance(value, float):
            return self.normalize(float(value))
        elif isinstance(value, (list, tuple)):
            try:
                if isinstance(value[0], Rating):
                    # flatten transformed ratings
                    value = tuple(map(float, value))
            except (__HOLE__, IndexError):
                pass
        return super(almost, self).normalize(value)
dataset/ETHPy150Open sublee/elo/elotests.py/almost.normalize