Map actors and their movie onto a dictionary
<pre><code>def parse_actor_data(actor_data):
    while 1:
        line = actor_data.readline().strip()
        if line.count('-') &gt; 5:
            break
    actor_movie = {}
    values = []
    actor_name = ''
    running_list = []
    movie = []
    for line in actor_data:
        position = line.find(')')
        running = line[:position + 1]
        value = running.split('\t')
        for k in value:
            if k != '':
                running_list.append(k)
        actor_name_list = value[0].split(',')
        actor_name = actor_name_list[0] + actor_name_list[-1]
        for i in range(len(running_list)):
            if value[0] == running_list[i]:
                position2 = i
        movie = running_list[position2+1:]
        actor_movie[actor_name] = movie
        check = actor_movie.keys()
    for c in range(len(check)):
        if len(check[c]) &lt; 1:
            actor_movie.pop(check[c])
    return actor_movie
</code></pre>

<p>Problem I'm having now is that only the first item of movie is added into the actor_movie anyone can help? i tried so long for this already i seriously have no idea why isn't this working...</p>
