Python Code For Generating Bar Diagram