Plotting In Python Using Global Variables