modules.pip.upgrade improvement

Updated modules.pip.upgrade function to only upgrade packages which are out-of-date