title: Python Module xattr has no attribute list
body: <p>I wrote a script which sets extended attributes on some files, with the module <code>xattr</code>. I successfully tested it in Ubuntu in python3, but it won't work on my RasperryPi. </p>
  
  <p>I had to change a dozens of little errors, mostly like <code>xattr not knowing its methods</code>. </p>
  
  <p>For example the <code>xattr.set(...) has to be changed to xattr.setattr(...)</code>. But I failed at listing them. So I tried the just the basics and get the error:</p>
  
  <pre><code>import xattr
  xattr.list('files.py')
  Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: module 'xattr' has no attribute 'list'
  </code></pre>
  
  <p>I had the idea that maybe python is using the wrong module (for python 2.7 instead of 3?). So I tried to uninstall the 2.7 module but got this:</p>
  
  <pre><code>...$ pip uninstall xattr
  Traceback (most recent call last):
  File "/usr/local/bin/pip", line 7, in &lt;module&gt;
  from pip._internal import main
  ImportError: No module named _internal
  </code></pre>
  
  <p>But I could successfully uninstall the python3 package. After that the "import xattr" still worked even in python3?</p>