def __ror__(self, other):
    s = str(other).split('\n')
for i in range(0, len(s), self.num_lines):
    print('\n'.join(s[i:i + self.num_lines]))
input('Press <Enter> for more')
less = Less(num_lines=30)
'\n'.join(map(str, list(range(100)))) | less
Python -- How do you view output that doesn't fit the screen?