Fixed contrib scripts. Added *.pyc cleaning scripts
Added the real pkg_resources from setuptools 7.0. Should fix #2001