def bcon(reg, blocks):
	"""
	Block list converter.
	If blocks is a list of integers, convert to a list of blocks using reg.blocks.
	Else, do nothing.
	Return list of blocks.
	"""
	## go
	if len(blocks)>0 and type(blocks[0])==int:
		blocks = [ reg.blocks[blocks[i]] for i in range(len(blocks)) ]
	## return
	return blocks