Use only
```
if PY:
    # python2 specific code
else:
    # python >= 3 specific code
```