Generator expression syntax error fix

Should now work on python 2.6