code: def rewrite_policy(self,cspDefaultHeaders):
  		
  		try:
  			self.check_valid(cspDefaultHeaders)
  			if self.inputs is not None:
  				for p,l in cspDefaultHeaders.items():
  					if p in self.inputs:
  						cspDefaultHeaders[p] = self.inputs[p]
  					else:
  						cspDefaultHeaders[p] = []
  				return cspDefaultHeaders
  			else:
  				return self.inputs
  		except Exception, e:
  			raise
docs: fresh csp policy