improve compatibility with the 'nose' unit testing package for python