Still could do with an extra newline here. It is not going to be flagged as a PEP8 issue but two newlines before this block is consistent with common style and the other examples I believe.