Refactoring into a MacroGraph class.
Ignore .pyc files.