Fix formatting.

Wrap lines to 79 characters. Separate top-level functions with two blank
lines. Put closing quotes on the same line for single-line docstrings.