Fix shadows built-in 'dir'.
Simplify code.
Simplify code: replaced map() by list comprehension.
Suppress pylint warnings.
More strict check existence of venv.
Remove babel from dependent libs.