replace list comprehensions with generator expressions where possible, resolves issue #71