this function library contains pmag tools for use in interactive IPython environment