add find_obsolete_pkgs and make some minor changes in safe_remove_packages interface

Now I have pushed my changes in the correct branch blob-split (I hope so).