pkg exclusions for pip list/freeze

a redo of #1577 for develop branch