'Sets the password to use when extracting.'

def setpassword(self, password):

    self._password = password
    if self._file_parser:
        if self._file_parser.has_header_encryption():
            self._file_parser = None
    if (not self._file_parser):
        self._parse()
    else:
        self._file_parser.setpassword(self._password)
