fix flake8 reported issues

Some unused symbols were removed but I had to disable flake8 on some lines,
following an advice by Lud DeMeyer:

"You should NOT remove the ‘unused variables’ in none of the
report_xls dependent modules because flake8 is not capable of understanding the
‘python name space’ trick done by report_xls."