modified:   MagIC.py