def which_param_subset(d1, d2):
	""" 
	Between two dictionaries where one is a subset of the other,
	return ints 1, 2, or 3 depending on the result.
	1: first param is subset of 2nd
	2: second param is subset of 1st
	3: neither are subsets of each other
	"""
	k1 = d1.keys()
	k2 = d2.keys()

	if k1 == k2:
		for key in k1:
			if isinstance(d1[key], dict) and isinstance(d2[key], dict):
				value = which_param_subset(d1[key], d2[key])
				if value == 1 or value == 2:
					return value
				else:
					pass
	elif k1 <= k2:
		return 1 
	elif k1 >= k2:
		return 2 
	else:
		return 3