Change the default parameter from {} to None with a if

when an empty dict or list is used as default parameter the same list is going to be
used at each call. Resulting in weird behavior if we ever modify the parameter.