Changes mixer settings using amixer.  Uses pyalsaaudio to record.  Seems quite buggy.  About to try PyAudio instead.
Making good progress. Have started to callibrate using WattsUp. Calcs RMS for voltage.