Tp python class

for loops would be cleaner