Fix this python 2.6 assertion nonsense

A little fix because of a mistake while merging.