class Graph(GraphUtils):

    def __init__(self):
        super(Graph, self).__init__()
self.graph_size = 10

def print_size(self):
    print(self.graph_size)
if __name__ == '__main__':
    g = Graph()
print('Graph default size: {}'.format(g.graph_size))
g.set_size(20)
g.print_size()
How to inherit a class' methods and have them access self member variables in python