Consistently use 4 spaces in publish.py.
More human-friendly error messages in publish.py. Clean up the script's diagnostic output a bit.