rewrote the dict_to_attrs function. Explicit check for 'replace' attribute in dictionnary values.
improved the docstrings
version