Good catch for PY3. I like the standalone attrs.pop(key) because it makes it standout. When dealing with metaclasses I really like making each line atomic.