Use list instead of set (Python 2.6 compatibility), fix typo