def str_to_int(s):
	"""Convert binary strings (starting with 0b), hex strings (starting with 0x), decimal strings to int"""
	if s.startswith("0x"):
		return int(s, 16)
	elif s.startswith("0b"):
		return int(s, 2)
	else:
		return int(s)