Rewrite of mpd.py. sudo commands