Update `gitlab-ci` configuration to use right software versions
flake8
suddenly started to fail. It seems to be a problem of python version. This MR updates gitlab-ci
configuration to make sure we use the right software versions for running each job.