Commons: fix list comprehension for python2.6