I should have been more clear. PEP8 states that there should be just one newline between methods http://www.python.org/dev/peps/pep-0008/#blank-lines, but re-reading the code it turns out that these are indeed main level functions. My apologies.