try and set sentinal correctly for python 3