Added semantic similarity in Python