  
          if accepted_media_type:
              # If the media type looks like 'application/json; indent=4',
              # then pretty print the result.
              base_media_type, params = parse_header(accepted_media_type)
              indent = params.get('indent', indent)
              try:
                  indent = max(min(int(indent), 8), 0)
              except (ValueError, TypeError):
                  indent = None
 
</s> remove     words = word_split_re.split(force_unicode(text))
 </s> add     words = word_split_re.split(force_text(text)) </s> remove                     userid = smart_unicode(auth_parts[0])
                    password = smart_unicode(auth_parts[2])
 </s> add                     userid = smart_text(auth_parts[0])
                    password = smart_text(auth_parts[2]) </s> remove     #     data = {'id': 1, 'name': u'target-1', 'sources': [1]}
 </s> add     #     data = {'id': 1, 'name': 'target-1', 'sources': [1]} </s> remove     if isinstance(val, basestring):
 </s> add     if isinstance(val, string_types): </s> remove     _MAX_CSRF_KEY = 18446744073709551616L     # 2 << 63
 </s> add     _MAX_CSRF_KEY = 18446744073709551616      # 2 << 63
            base_media_type, params = parse_header(accepted_media_type.encode('ascii'))
  
          if accepted_media_type:
              # If the media type looks like 'application/json; indent=4',
              # then pretty print the result.
            base_media_type, params = parse_header(accepted_media_type.encode('ascii'))
              indent = params.get('indent', indent)
              try:
                  indent = max(min(int(indent), 8), 0)
              except (ValueError, TypeError):
                  indent = None
keep keep keep keep replace keep keep keep keep keep
 First passing test under p3k \o/ 
rest_framework/renderers.py