finished lattices.py I think...