try to keep the connection with mpd alive instead of closing each time random-mode is disabled
add wrappers for str(n)cmp functions for clarity