Snakes cannot actually cough, & if she hasn't eaten in a while, maybe it was coming from her GI tract (as in "going to take a dump")? They also pass gas now &
then...you wouldn't be the first to be startled by it.Does she by any chance look "backed up" (is the area above her cloaca bulging a little? -aka "sausage-butt"