Pep8 job is using requirements from the master branch thus e.g. tempest 27.0.0 is used and job is failing due to that.
Fix verified https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/job/DFG-network-python-neutron-tests-tempest-16.1-component-tests-osp/104/
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.7 (Train) bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3762