[Kwant] Dynamic number of lattices