def binary_to_int(bin_num):
	""" 
	Converts binary number to int 
	
	Parameters
	----------
	bin_num : str
		Binary number.  E.g. bin(100) = '0b1100100'
		
	Returns
	-------
	int
		Integer (converted from binary)
		
	"""
	return int(bin_num, 2)