How can I check what version of the Python Interpreter is interpreting my script?
With six module, you can do it by:
six
import six if six.PY2: # this is python2.x else: # six.PY3 # this is python3.x