made parse return a list instead of an iterator, cf issue #614