Logic layer for PyMoss