removing dead imports and *.pyc *.so