Six: Python 2 and 3 Compatibility Library
packages.python.org
packages.python.org
Have an declaration at the top of the source file that states what Python version the source file is and/or use a versioned file extension and be done with it. If you want to take advantage of Python 3 features in a Python 2 source file, you'll have to upgrade the source file, that would be a given.
Maybe a Pythonista here will answer. But then, I've seen this mismatch between versions of other languages, too. Either language designers or I are missing something here.