  
  from pygments.lexers import get_all_lexers
  from pygments.styles import get_all_styles
  
  import httplib2 as httplib
  
  
  LEXER_CHOICES = sorted([(item[1][0], item[0]) for item in get_all_lexers()])
  STYLE_CHOICES = sorted((item, item) for item in list(get_all_styles()))
  
  
  class PygmentsForm(forms.Form):
 
</s> remove ##### Root Resource #####

class RootResource(Resource):
    """This is the top level resource for the API.
    All the sub-resources are discoverable from here."""
    allowed_methods = ('GET',)

    def get(self, request, *args, **kwargs):
        return Response(status.HTTP_200_OK,
                        {'blog-posts': self.reverse(BlogPostList),
                         'blog-post': self.reverse(BlogPostCreator)})


##### Blog Post Resources #####

 </s> add  </s> remove import hashlib
 </s> add import uuid
import operator </s> remove from flywheel.modelresource import ModelResource, QueryModelResource
 </s> add from flywheel.modelresource import ModelResource, RootModelResource </s> remove     (r'^([a-zA-Z0-9]+)/$', 'PygmentsInstance'),
 </s> add     (r'^([a-zA-Z0-9-]+)/$', 'PygmentsInstance'),
  
  from pygments.lexers import get_all_lexers
  from pygments.styles import get_all_styles
  



  LEXER_CHOICES = sorted([(item[1][0], item[0]) for item in get_all_lexers()])
  STYLE_CHOICES = sorted((item, item) for item in list(get_all_styles()))
  
  
  class PygmentsForm(forms.Form):
keep keep keep keep replace replace replace keep keep keep keep keep
 Lots of docs, trying to tidy up examples... 
examples/pygments_api/forms.py