Formatting similarity.py