demag_gui.py: fixed some things for mac compatability
demag_gui.py: fixed some things for mac compatability

lfairchild/PmagPy,lfairchild/PmagPy,Caoimhinmg/PmagPy,lfairchild/PmagPy,Caoimhinmg/PmagPy,Caoimhinmg/PmagPy