replaced filter with list comprehensions
various other pylint improvements (9.40)