move python 3-only code to its own file.
4 files changed