Fix undefined variable, disable incorrect pylint error, add -tt to python invocation