The big difference is that while the PHP major upgrades - although had breaking changes - provided a forward-compatible way for you to run older version code on a newer version PHP (see WordPress for PHP 5 running fine on PHP 8), Python did not offer such a thing; code was either exclusively for Python 2 or for Python 3, making upgrade paths very difficult.