[timestream] whole module misc pylint/bug fixes