[pylint] Fix W0141 - use of map. Change to list comprehension.
[pylint] Fix W0612 - Unused variable.
Remove variables, when a variable cannot be deleted (when a function return a
tuble, self assign the unused variable).