this looks like it might get tedious, how about
'''python
product = self.product
for k, v in (['bango', 'seller_bango'], ['boku', 'seller_boku']): 
    try:
      providers[k] = getattr(product, v).seller.uuid
    except ObjectDoesNotExist:
      providers[k] = None
'''