Analysis and plotting code, in Python and iPython notebooks