fix broken master regarding pep8 number of blank lines

@sarina seems like master is failing pep8 now. Here are the fixes. The problem was that the PR passed code quality tests on the diffs.