Namespaces have an export feature. A bit clunky, but a definite improvement over the .IMPORT macro. I've replaced all instances of .IMPORT with the "export_to" method, except languages/PIR/examples/test.pir, because it seems to just be a generic syntax example.