SIGN IN SIGN UP

Merge #14490, #14491: add 'sundry'-style import tests for Tools/scripts.

This patch changes a few of the scripts to have __name__=='__main__'
clauses so that they are importable without running.  Also fixes the
syntax errors revealed by the tests.
R
R David Murray committed
ce9806215b82e4a0e8dd37eb9a669477161adfec