Update character_similarity.py