pylint complains about map.

Change to list comprehensions or single calls.
Wrap long lines.