Fixed status assertions on Python 3.x.