check python version before including tern