[ts/init.py] flake8 changes