class A(object):

    def __init__(self):
        self.x = 2

def A_Factory():
    return A()


class B(A):

    def __new__(cls):
        pass
How to set the class of value returned by __new__ without using super?