How To Find Frequency In Python