This is a really horrible hack, but hopefully future versions of pep8 will bring a nicer API to manipulate. I'll be gladly contributing to it.