Update utilities_for_notes.py

fixed condition.