how to loop through the contents of a method in python code example
Example: loop through python object
for attr, value in k.__dict__.items():
print(attr, value)
for attr, value in k.__dict__.items():
print(attr, value)