import time from mpd import MPDClient client = MPDClient() client.timeout = 60 client.connect("localhost", 6600) client.clear() client.load("internetradio") client.setvol(60) client.play(0)