Fix a syntax error in Python 3

`[filename for filename in 'COPYING', 'README.rst']` is only valid in Python 2.