Fix Python 3 compat in Attr_list. Fixes #218.