Plotting Bar Graph In Python Using Global Variables