Why not put it in the function then?

Having an automated tool (`pep8`) find and report style breakages is so helpful that my opinion is we should either always obey it, or agree upon and programmatically add exceptions to one or more rules.  The alternative will be to see the same warnings thousands of times over (or abandon the check, which IMO is worse).