a simple fix for nested functions (fixes #28)
import test case from https://github.com/JensRantil/pep8/commit/82c3a9e28bd3d4019fbc453d79e6937f0e1a08de