Python routines to process castep code output, mostly magnetic resonance