I've read the blank line section in pep8. It says that we should surround top level functions with blank lines, but it doesn't say anything about if statements.
I've done some digging on what a top level is in Python and it seems to be anything that's not indented. Does this mean that if statements should be surrounded by blank lines? Are if statements considered functions?
I can't find anything on stack overflow about this.