More tweaks to intermag.py...