Read about @property decorator - this is how you do stuff in python