I want to access the \'scans\' variable in the process_scan() method. How can I do this without declaring \'scans\' as a global?
This is my current code: