Python 2.6 compatibility

Added nosetests becase unittest module
in Python 2.6 hasn't module 'discover'.