Can't get my loop & match to append to correct list
<p>I´m experiencing problems with my code. 
I can´t get it to append to the list not_found as well as it loops twice for some reason.
Can anyone point me in the right direction? The match works for my_track, but it doesn't when it doesn't match.</p>

<pre><code># coding: utf-8
#!/usr/bin/env python
import spotimeta
import sys
import time

my_tracks = raw_input("Please enter a sentence: ").title().split()
playlist = []
real_playlist = []
not_found = []

def check_track(track_name, my_track, track_href):
    if track_name == my_track:
        playlist.append(track_href)
        return 1

# make sure the user does not input a single word as input
if (len(my_tracks) &gt; 1):
    path = my_tracks[1]
else:
    sys.exit("Invalid input, please enter a sentence.")


# let's search
for my_track in my_tracks:
    match = 0
    print "Searching for '%s'\n" % (my_track),
    data = spotimeta.search_track(my_track)
    for result in data['result']:
        if not match == 1:
            try:
                match = check_track(result["name"],my_track,result["href"])
            except Exception, e:
                error = "not available"
            else:
                if data['total_results'] &gt; 0:
                    not_found.append(my_track)
</code></pre>
