CLN: optimize: Some code cleanup

This started out as a change to a single word in the docstring of `anneal`, but I figured while I had the file open, I'd clean up a bit.  Then I got carried away...