Generate classes based on the mozilla parser api

- now can filter based on types
shouldn't we use mro if we're worried about multiple inheritance? This part of python 2 has always been odd to me since you have to provide the class anyway (makes more sense in python3).