Encapsulation in Python