def kwargs_from_keyword(from_kwargs, to_kwargs, keyword, clean_origin=True):
    """
	Looks for keys of the format keyword_value. 
	And return a dictionary with {keyword:value} format

	Parameters:
	-----------
		from_kwargs : dict
			Original dictionary
		to_kwargs : dict
			Dictionary where the items will be appended
		keyword : string
			Keyword to look for in the orginal dictionary
		clean_origin : bool
			If True then the k,v pairs from the original 
			dictionary are deleted
	"""
    for k in list(from_kwargs.keys()):
        if '{0}_'.format(keyword) in k:
            to_kwargs[k.replace('{0}_'.format(keyword), '')] = from_kwargs[k]
            if clean_origin:
                del from_kwargs[k]
    return to_kwargs
