<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_action(action, params=None):
 	""" 	helper method for sending actions 	"""

	data={"msg_type":"action", "action":action}
	if params is not None:
		data['params']=params
	_comm.send(data)