Trying to make a playlist maker using pygame but it will only play the very first song on the list and it does load the next song but no audio is played
from pygame import mixer # Load the required library
from os import listdir
from mutagen.mp3 import MP3
import time
k = listdir('C:/LOCAL')
print(k)
mixer.init()
for x in k:
y = "C:/LOCAL/" + x
print y
mixer.music.load(y)
mixer.music.play()
tracklength = MP3(y).info.length
print tracklength
time.sleep(tracklength)