xattr is defined as requirement, setup.py bug fix.

xattr is defined in install_requires=[], as it may not be present.

moved "from xattr import xattr" inside __main__ so that import __version__ works during setup, even if xattr is not installed.