The compat module now has the py_version variable specifying if this is Python 2 or 3.
Authored by: bugman 2012-10-02
Parent: [r17653]
Child: [r17655]