Fixed #22577: Python 3 broke on non-module migrations directory

omit "Fix 2277" (if we did that every time we fixed a bug, there would be a lot of cruft comments).
Also, while you are there I would simply say "Python 3" instead of "3.x"