The indentation is wrong. I don't know this autopep8 tool, but if this is its output, then I'd say it's buggy.