Update occurrences.py