made assertionIS compatible with python2.6