[pci]using flake8 format the ugly code in ch02