Added iflip function to IPmag.py library

The iflip function returns the antipode (flips) of the unit vectors in
D (dec,inc,length).