import sys # Quickly determine which version is running python2 = sys.version_info.major == 2 python3 = sys.version_info.major == 3