<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def main(argv=None):
 """ Execute the application CLI. Arguments are taken from sys.argv by default. """

    args = _cmdline(argv)
    config.load(args.config)
    results = get_package_list(args.search_term)
    results = sorted(results, key=lambda a: sort_function(a[1]), reverse=True)
    results_normalized = list()
    last_result = None
    for result in results:
        if result[0] == last_result:
            continue
        results_normalized.append(result)
        last_result = result[0]
    print('\n'.join(["%s    -     %s" % (_[0], _[1]) for _ in results_normalized]))
    return 0