def _merge_dicts(*dict_args):
    """
    Given any number of dicts, shallow copy and merge into a new dict,
    precedence goes to key value pairs in latter dicts.
    See http://stackoverflow.com/a/26853961/2680824
    """
    result = {}
    for dictionary in dict_args:
        result.update(dictionary)
    return result