  from rest_framework.compat import StringIO
  from django import forms
  from django.test import TestCase
  from rest_framework.parsers import FormParser
  from rest_framework.parsers import XMLParser
  import datetime
  
  
 
</s> remove from rest_framework.compat import yaml, patterns, url, include
 </s> add from rest_framework.compat import yaml, etree, patterns, url, include </s> remove from decimal import Decimal
 </s> add import pickle
import re </s> remove 
 </s> add from django.utils import unittest </s> remove import pickle
import re

 </s> add from decimal import Decimal </s> remove from xml.etree import ElementTree as ET
from xml.parsers.expat import ExpatError
 </s> add 
from django.utils import unittest
from rest_framework.compat import etree
  from rest_framework.compat import StringIO
  from django import forms
  from django.test import TestCase
from django.utils import unittest
from rest_framework.compat import etree
  from rest_framework.parsers import FormParser
  from rest_framework.parsers import XMLParser
  import datetime
  
  
keep keep add keep keep keep keep keep
 defusedxml for security fix.

As per:
http://blog.python.org/2013/02/announcing-defusedxml-fixes-for-xml.html 
rest_framework/tests/parsers.py