Python Learning Jaccard Index