Generate classes based on the mozilla parser api

- now can filter based on types
We might as well use izip here and save allocation of a temporary list.