max_pending_results is not used in main_loop anymore
There is no need anymore to pass max_pending_results to the main_loop function in scanner.py.
There is no need anymore to pass max_pending_results to the main_loop function in scanner.py.