Use getModificationCount() instead (PY-14376, PY-14496)

Because it is changed on every PSI modification, not on the external
interface of a modification.
lambda -> methref: respect laziness (IDEA-133372)
Merge branch 'python-fixes'