[1.5.x] Fixed #19965 - Added a warning that the tutorial is written for Python 2.

Thanks itsallvoodoo for the patch.

Backport of e1bafdbffa from master.