BLD: Replaced assert_is import from nose.tools in test_legend as python 2.6 does not support it
STY: pep8 fixes to test_legend.py