This is a factored out version of unparse found in the Python source
distribution.
