simplify PyThread
move code
format
better
better
better
getNextSong: curSong is never unset
better
close output stream if not needed
startWorkerThread Python func
start worker thread right away