initial import of completely refactored pynest code