ADD looper example in python OOP