title: AttributeError: 'unicode' object has no attribute 'success'
body: <p>I have a simple script using requests to validate a list of emails. Relevant code:</p>
  
  <pre><code>def ___process_email(email, output_file=None):   
      profile = request(email)
      if profile and profile.success != 'nothing_useful':
          logger.info('Found match for {0}'.format(email))
          print(profile)
          if output_file:
             output_file.write(str(profile) + '\n')
      else:
          print("No information found\n")
  </code></pre>
  
  <p>This ran through 5 loops successfully then threw: </p>
  
  <pre><code>Traceback (most recent call last):
    File "app.py", line 147, in &lt;module&gt; main()
    File "app.py", line 141, in main ___process_email(arg, output)
    File "app.py", line 107, in ___process_email if profile and profile.success != 'nothing_useful':
  AttributeError: 'unicode' object has no attribute 'success'
  </code></pre>
  
  <p>Here's the model:</p>
  
  <pre><code>class Profile(object):
      def __init__(self, person):
          if person:
              self.name = person.get('name')
              self.jobinfo = [
                  (occupation.get('job_title'), occupation.get('company'))
                  for occupation in person.get('occupations', [])
              ]
  
              self.memberships = [
                  (membership.get('site_name'), membership.get('profile_url'))
                  for membership in person.get('memberships', [])
              ]
              self.success = person.get('success')
  
      def __str__(self):
          return dedent("""
              Name: {0}
              {1}
              {2}
          """).format(
              self.name,
              "\n".join(
                  "{0} {1}".format(title, company)
                  for title, company in self.jobinfo),
              "\n".join(
                  "\t{0} {1}".format(site_name, url)
                  for site_name, url in self.memberships)
          )
  </code></pre>
  
  <p>Request:</p>
  
  <pre><code>import requests  
  
  def request(email):
  
      status_url = STATUS_URL.format(email)
      response = requests.get(status_url).json()
      session_token = response.get('session_token')
      # fail gracefully if there is an error
      if 'error' in response:
          return response['error']
      elif response['status'] == 200 and session_token:
          logger.debug('Session token: {0}'.format(session_token))
          url = URL.format(email)
          headers = {'X-Session-Token': session_token}
          response = requests.get(url, headers=headers).json()
          if response.get('success') != 'nothing_useful':
             return Profile(response.get('contact'))
      return {}
  </code></pre>
  
  <p>Anyone see why my strings are unicode? thanks</p>