def partition(inp_list, n):
	"""
	Paritions a given list into chunks of size n

	Parameters
	----------
	inp_list:       List to be splittted
	n:     		Number of equal partitions needed
	
	Returns
	-------
	Splits inp_list into n equal chunks
	"""
	division = len(inp_list) / float(n)
	return [ inp_list[int(round(division * i)): int(round(division * (i + 1)))] for i in range(n) ]