[code-quality] [PyCQA/astroid] backport bugfix for six.moves to release branch 1.6