Improve macro load time.

We have a large code base, and macropy caused the import time of our project
to go to about 3s on most people's laptops. These changes, which reduce
AST walking, reduced it to about 1.6s.