Fix label_to_text for appendix labels that are not just letters
PEP8
Merge pull request #625 from khandelwal/appendix_m1

Our label_to_text didn't take into account appendices with labels like M1, M2.