def _collect(self, step):
    n = gc.collect()
    if (n > 0):
        print(f'{self.title}: freed {n} unreachable objects on {step}')
def _collect(self, step):
    n = gc.collect()
    if (n > 0):
        print(f'{self.title}: freed {n} unreachable objects on {step}')