script = """tell application "iTunes"
  repeat with bTrack in (every track of playlist 7 whose artist contains "Golden")
    print bTrack
  end repeat
end tell"""
tracks, _ = subprocess.Popen('osascript -e %s' % script, stdout=subprocess.PIPE
    ).communicate()
trackList = tracks.split('\n')
Searching for a track on iTunes