Learning how to plot pie/bar charts in python