@sdaftuar - I never reviewed the dbcrash.py test in #10148 . This PR fixes up a few nits:
- tidy up imports (don't import
timeindirectly, no need for try-except importinghttplibsince that's a python 2/3 compatibility trick, and our tests always run in Py3) - move function-level comments to docstrings
- combine module-level docstrings
- a few other small whitespace, etc nits
low-priority, should be fairly uncontroversial, but let me know if you disagree with any of these.