Check python version earlier in a code