fix derived types so managed classes can be declared in python by
subclassing interfaces