Catch only the exception type(s) we expect.
Cleaned up test.  Still intermittently fails.
Added pytestopts= option for passing arguments to the python test framework