I would suggest making the variable actually *private* (aka prefix it with an underscore).

Additionally the conditional part should be consolided:

    _py3 = sys.version_info >= (3, 0)