Plotting An Array In Python Definition Function Generator