py2.6 compatible assert