Update the python ifdebug snippet