Python: nosetests test generator