use list(range in pytables tests
CLN: modernize compat + remove cruft
last range fixes