Similarity Score In Python