          return request.build_absolute_uri(url)
      return url
  
  
  reverse_lazy = lazy(reverse, str)
 
</s> remove         return str(data).strip()
 </s> add         return six.text_type(data).strip() </s> remove             return str(obj.total_seconds())
 </s> add             return six.text_type(obj.total_seconds()) </s> remove         return str(value)
 </s> add         return six.text_type(value) </s> remove         return str(value)
 </s> add         return six.text_type(value) </s> remove         return str(value).strip()
 </s> add         return six.text_type(value).strip()
reverse_lazy = lazy(reverse, six.text_type)
          return request.build_absolute_uri(url)
      return url
  
  
reverse_lazy = lazy(reverse, six.text_type)
keep keep keep keep replace
 Use six.text_type instead of str everywhere 
rest_framework/reverse.py