Is `columns` a python dictionary?  If so, `columns.get(DIGEST_REALM, None)` is more pythonic and probably faster.