Replaced nose by py.test

nose.tools is still used in some test though. cleanup will follow.