modified:   pmag.py