Fix bugs in attrconf.py