I have been waiting some time for a 'python' implementation to implement a routine that would access the vector value of the magnetic field on iOS devices - as opposed to just a compass heading.
Joy to see that Pythonista offers it - but tears that it returns zero!!!
Any chance of your looking at it soon?
I confirm that motion.get_magneticfield() returns 0.0 on both iPad Air and iPhone 5.