transition and sampling pep8 fixes, handle linked tables with no added rows