autocomplete required packages as second argumet
remove unused function
Merge pull request #1901 from geecu/autocomplete_required

autocomplete required packages as second argumet