Remove errors or typos from TorNet.py and Templating.py
I use vscode for programming and when I open chutney files, TorNet.py and Templating.py, vscode reports a bunch of errors and warnings. These are often due to typing mistakes and unused variables.
This ticket aims at removing them.