def Int2Bin(integer: int,n_bits: int):
	"""Turn an integer into a binary string.
	Args:
		integer (int): Integer to convert.
		n_bits (int): Minimum number of bits to represent the integer with.
	Returns:
		str: binary_str
	"""
	formatstr = '0' + str(n_bits) + 'b'
	return format(integer,formatstr)