<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prepare(self, context):
 		"""Executed prior to processing a request."""

		if __debug__:
			log.debug("Assigning thread local request context.")
		
		self.local.context = context