fixing broken assertion on python3