The two lines between top level functions is specified by PEP8: http://www.python.org/dev/peps/pep-0008/#blank-lines