Pushing updated similarity.py