code: def get_items_as_list(items,keys,items_names='styles'):
  	
  	if type(items)!=dict:
  		if type(items)==list:
  			if len(items)!=len(keys):
  				raise Exception('List of {0} is not the same length as keys'.format(items_names))
  			else:
  				items=dict(zip(keys,items))
  		else:
  			items=dict(zip(keys,[items]*len(keys)))
  	return items
docs: Returns a dict with an item per key
  
  	Parameters:
  	-----------
  		items : string, list or dict
  			Items (ie line styles)
  		keys: list 
  			List of keys
  		items_names : string
  			Name of items