'Update the protocol_flags and sync them with Portal.
Kwargs:
key, value - A key:value pair to set in the
protocol_flags dictionary.
Notes:
Since protocols can vary, no checking is done
as to the existene of the flag or not. The input
data should have been validated before this call.'

def update_flags(self, **kwargs):

    if kwargs:
        self.protocol_flags.update(kwargs)
        self.sessionhandler.session_portal_sync(self)
