'Sets the timeout in seconds.'

def set_timeout(self, seconds):

    try:
        self._timeout = int(seconds)
    except ValueError:
        raise ValueError('timeout    in    seconds    must    be    integer')
