Try pynvl-lib
from pynvl import nvl
print(nvl(None, 5)) # 5
print(nvl("hello", 99)) # 'hello'
#You can nest nicely too which might help:
print(nvl(nvl(nvl(email, phone), office), "No contacts"))