I think it's possibly more robust to test: `sys.version_info[0] < 3` in case of weird minor version numbers.