ENH: Pyflakes cleanup in tsa