Move nose.test pylint craziness into one place.

@sarina, I am sure you will agree this is top-quality code.