def METHOD_NAME(self, http_context):
    """
    Call pip3 to get list of installed ajenti packages.
    :param http_context: HttpContext
    :type http_context: HttpContext
    :return: List of packages
    :rtype: list
    """
    r = {}
    for l in subprocess.check_output([sys.executable, '-m', 'pip', 'freeze']).splitlines():
        if l:
            package = l.decode().split('=')[0]
            if package:
                prefix = 'ajenti.plugin.'
                if package.startswith(prefix):
                    name = package[len(prefix):]
                    r[name] = package
    return r