[PEP8] changes, code improvements

- use format dictionary for raising exception message
  instead of duplicate the format tuple in LoginManager.__init__()

Change-Id: I82a42f5d9d744c20bee0decdf056e640c4560f67