Generate successive chunks of ensemble_list.

def chunker(ensemble_list, ncpu):
    """
	Generate successive chunks of ensemble_list.
	"""

    # determine sublist lengths
    length = int(len(ensemble_list) / ncpu)

    # generator
    for i in range(0, len(ensemble_list), length):
        yield ensemble_list[i:i + length]