Update repository_tool.py.

Raise exception if signature not found in remove_signature().
Minor edits to comments and whitespace.