Minor changes to corpus.py and labeling.py