code: def get_applicant_from_email(email):
      
      try:
          applicant = Person.active.get(email=email)
          existing_person = True
      except Person.DoesNotExist:
          applicant = Applicant.objects.create(email=email)
          existing_person = False
      except Person.MultipleObjectsReturned:
          applicant = None
          existing_person = False
      return applicant, existing_person
docs: Get applicant from email address.
  
      If the person exists, return (person, True)
  
      If multiple matches, return (None, True)
  
      Otherwise create applicant and return (applicant, False)