Updated bc_graph to use OO framework rather than pylab