some python code for parsing output from GlimmerHMM