multipath inheritance in python