Support Python 3 in Clang compiledb scripts

The scripts still work with Python 2.
There are no intended behaviour changes.

Bug: 941669
Change-Id: I01acd1f07627b540a0d7c870e661b0bf82b92626
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536066
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#643732}
2 files changed