class B(object):

    def do_something(self):
        print("I'm a B")


class A(object):

    def do_something(self):
        print("I'm an A")


class AorB(object):
    pass
Safe to change base class in python?