BTW, I did (very quickly, so it's rough, my regexps are not really catching everything) the same or our code base:
"is None"+ "is not None": 5600
AttributeError: 160
3 args getattr: 60
hasattr: 1800
So very similar to your pattern....except for hasattr, which is much more common in my case...