Python is an interpreted language, so the comparison is meaningless.
It is cheap to deal with the ambiguity in the compiler using compile options. You could go the Java way and have separate class path (e.g. In PyPy, as CPython 2.x is dead).
But this does not allow you to mix and match code for older version anyway. Java was designed from start to allow this and it is why it's so stagnant.