In the two attached files, the raw data from the PyPI search is available (slightly edited for readability):
idiom-1:if-check idiomidiom-2:try/exceptidiom
From that data, here are a few cherry-picked examples from the top 5000 PyPI packages: