fixed floating point precision problem for fractions in create_pi_labels.py