Pmag function libraries for use within IPython notebooks