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

def eball(rest):
	"Ask the magic 8ball a question"
	try:
		url = 'https://8ball.delegator.com/magic/JSON/'
		url += rest
		result = requests.get(url).json()['magic']['answer']
	except Exception:
		result = util.wchoice(phrases.ball8_opts)
	return result