def METHOD_NAME(folder, fname, doc, doc_export):
	"""Export code files and strip from values"""
	if hasattr(doc, "get_code_fields"):
		for key, extn in doc.get_code_fields().items():
			if doc.get(key):
				with open(os.path.join(folder, fname + "." + extn), "w+") as txtfile:
					txtfile.write(doc.get(key))
				# remove from exporting
				del doc_export[key]