How To Calculate Precision In Python