[ENH] Make tables properly iterable in python