Expose Lattice object to python