prot node_type to traits
merge from cython
get rid of all the _members and some minor changes
Merge pull request #92 from EasonLiao/traits

Port from node_type to traits