[ts.*] misc pylint fixes and changes

- remove unused imports
- fix typeless try: except: blocks
- remove unused variables/rename them to _