Added sentinel objects to the end of the python methods