Convert to object protocol
Convert to object protocol

This patch changes the hardcoded if-then-else constructs for selecting
the type of function (file-descriptor, symlink, normal path) into a
generic framework.

iustin/pyxattr,iustin/pyxattr