'Clear buffer from pexpect.
This is necessary because there are a bunch of 00:00 in the buffer'

def _clear_buffer(self):

    import pexpect
    try:
        while (not self._pianobar.expect('.+', timeout=0.1)):
            pass
    except pexpect.exceptions.TIMEOUT:
        pass
    except pexpect.exceptions.EOF:
        pass
