add check for minimal python version