code: def clean(self):
          
          doc = self._resource
          result = {k: v for k, v in doc.iteritems() if k not in
                    self.internal_fields}
  
          if '_id' in doc and 'id' not in result:
              result['id'] = doc['_id']
  
          return result
docs: Remove internal fields