moved import matplotlib statements in hopes that travis will now work on nosetests.