attr (and attr-to) update for Python