At least when using `xattr` 0.7.2 the function name is `setxattr`.
Also the value must be encoded to bytes, otherwise it fails with `initializer for ctype 'void *' must be a cdata pointer, not unicode` (at least on OS X), tested with the youtube test video http://www.youtube.com/watch?v=BaW_jenozKc.