Python Labeling Theory