def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def update(self):
        self.have = self.read_current_from_device()
        if not self.should_update():
            return False
        if self.module.check_mode:
            return True
        self.update_on_device()
        return True