title: Listing installed python site-packages?
body: <pre><code>from distutils.sysconfig import get_python_lib; print get_python_lib()
  </code></pre>
  
  <p>Returns: <code>/usr/lib/python2.6/site-packages</code></p>
  
  <pre><code>import sys; print sys.path
  </code></pre>
  
  <p>Returns: <code>['', '/usr/lib/python2.6/site-packages/Django-1.1.1-py2.6.egg', '/usr/lib/python2.6/site-packages/pip-0.6.3-py2.6.egg', '/usr/lib/python2.6/site-packages/TRML2PDF-1.0-py2.6.egg', '/usr/lib/python2.6/site-packages/django_threaded_multihost-1.3_3-py2.6.egg',...............</code></p>
  
  <p>But how to list the "importable name" from the site-packages installed? E.g: (before import results) <code>django, pip, trm2pdf....</code></p>
  
  <p>Thanks.</p>