inheritance in python example