fix avx detection for py3