some changes to plot_activity
moving plot activity to I Python notebook example