def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def open_link(self):
        "Open the selected item with the webbrowser"

        data = self.get_selected_item()
        url = data.get('permalink')
        if url:
            self.term.open_browser(url)
        else:
            self.term.flash()