TST: fix py errors in tests

Also remove remnants of some other frechet, remove duplicates from the test loop.
Merge pull request #1 from ev-br/pr/3275

TST: fix py errors in tests