implicit inheritance in python