cleanup(util): use compat module to check python version