<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def blame(channel, rest, nick):
	"Pass the buck!"
	if rest:
		blamee = rest
	else:
		blamee = channel
	karma.Karma.store.change(nick, -1)
	if random.randint(1, 10) == 1:
		yield "/me jumps atop the chair and points back at %s." % nick
		yield (
			"stop blaming the world for your problems, you bitter, "
			"two-faced sissified monkey!"
		)
	else:
		yield (
			"I blame %s for everything!  it's your fault!  "
			"it's all your fault!!" % blamee
		)
		yield "/me cries and weeps in despair"