def strip_msg(msg):
	"""
	Strip integer action and timestep from received message.

	Args:
	msg: convention is i.e. '3F_t7_C' (action=3, timestep=7)
	"""
	#print("\nInside strip_msg with: ", msg)

	# Collect timestep
	time_begin_index = msg.index('t') + 1
	time_end_index = msg.index('_C')

	msg_timestep = int(msg[time_begin_index:time_end_index])

	# Collect integer action
	action_end_index = msg.index('F')
	msg_action = int(msg[:action_end_index])

	#print("\nmsg_action: %d, msg_timestep: %d" % (msg_action,msg_timestep))
	return (msg_action, msg_timestep)