single inheritance in python example