Update typedef.py

Attribs are now automatically added