MicroPython doesn't work with AT commands that don't immediately return a result (like ATND and ATAS).
If you'd like an interface for Active Scan, please contact Digi International and make a feature request. They might be able to add it like the node discovery methods that provide a better interface to ATND results.