Use ordered dict for attributes