pep8 error: too many blank lines in legend.py