use generator expressions
refactored python solutions w jason