Q:

Class inheritance, how to improve?

i have a little question that is discouraging me i have this portion of code:
class A(object):
    def __init__(self):
        self.variable = "Hello World!!!"

class B(A):
    def __init__(self):
        self.A = A()
        self.inherited = self.A.variable

the thing is that i have a bunch of variables on class A that i don't want to instantiate and declare on class B one by one
is there a way to improve the code?

A:

You are using a mix of composition and inheritance. It seems like you want to exclusively use composition:
class A(Object):
    def __init__(self):
         self.c = C()
         self.e = E()

class B(Object):
    def __init__(self):
        self.c = C()
        self.d = D()

Where C, D, and E are components that group variables and methods together. Now A and B only share the component of C. You should look for more complete composition tutorials
Edit: Actually just double checking it looks like your just confused about instantiating super class variables. Other answers correctly addressed this with super

