Our code convention is three blank lines between top-level functions and classes, two between methods.
https://github.com/numenta/nupic/wiki/Python-Style-Guide#blank-lines