on the way to a python package.  fixed up pickling tests.  still need to fix up plotting tests to work with refactoring