def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def draw_error(layout, message):
        lines = message.split("\n")
        box = layout.box()
        sub = box.row()
        sub.label(lines[0])
        sub.label(icon='ERROR')
        for l in lines[1:]:
            box.label(l)