def merge_status_dict(d1, d2):
    """
    Given two TweetResult dictionaries, merge them into one status dictionary.
    Does not modify either dictionary, and rather makes a new one.
    """
    results = dict()
    for term, statuses in d1.items():
        if term not in results:
            results[term] = list()
        for status in statuses:
            results[term].append(status)
    for term, statuses in d2.items():
        if term not in results:
            results[term] = list()
        for status in statuses:
            results[term].append(status)
    return results
