def __init__(self, cred=None, max_tries=5, callback=newcred):
        """Create a new CosignPasswordMgr.

        Args:

          cred: Initial credentials. Will be returned by the first
          call to get_cred(). Should be a dictionary of the form:
            {'login': username, 'password': password}

          max_tries: Maximum number of times get_cred() may be called
          before IndexError is raised.

          callback: A function to be called to get new
          credentials. The current object instance (self) will be
          passed as the first argument.
        """
        self.set_cred(cred)
        self.try_count = 1
        self.max_tries = max_tries
        self.callback = callback
Create a new CosignPasswordMgr.

        Args:

          cred: Initial credentials. Will be returned by the first
          call to get_cred(). Should be a dictionary of the form:
            {'login': username, 'password': password}

          max_tries: Maximum number of times get_cred() may be called
          before IndexError is raised.

          callback: A function to be called to get new
          credentials. The current object instance (self) will be
          passed as the first argument.
        
recipes/Python/578217_Cosign_Handler/recipe-578217.py