I suspect there should be two blank lines here. Did you run pep8?..