Don't allow additional kwargs to attributes.

Prevent `attributes()` from silently swallowing any kwargs it doesn't understand.
Could you add a docstring please?