Print lists in a dictionary based on the status of change/depchanges
<p>Following is what I am trying, not sure where I'm messing up. I have the expected output at the bottom. Can anyone provide input on what is wrong here?</p>

<ol>
<li><p>Create a lists in a dictionary for each master change and its dependent change</p></li>
<li><p>Repeat step #1 until the depchange status is not NEW</p></li>
</ol>

<p>My code:</p>

<pre><code>def depchange(change):
    depchange_status=''
    if change == "23456":
        depchange=33456
        depchange_status == 'NEW'
    if change == "33456":
        depchange=""
        depchange_status == 'COMPLETED'
    return (depchange,depchange_status)


def main ():
    master_change="23456"
    dep={}
    while True:
        dep_change,depchange_status=depchange(master_change)
        master_change = dep_change
        dep[master_change]=dep_change
        if depchange_status != 'NEW':
            break
    print dep

if __name__ == '__main__':
    main()


'''
EXPECTED OUTPUT:-
dep = {
    '23456': ['33456'],
    '33456': [],
    }
'''
</code></pre>
