def get_password(self, service, username):
collection = self.get_preferred_collection()<EOL>items = collection.search_items(<EOL>{"<STR_LIT:username>": username, "<STR_LIT>": service})<EOL>for item in items:<EOL><INDENT>if hasattr(item, '<STR_LIT>'):<EOL><INDENT>item.unlock()<EOL><DEDENT>if item.is_locked():  <EOL><INDENT>raise KeyringLocked('<STR_LIT>')<EOL><DEDENT>return item.get_secret().decode('<STR_LIT:utf-8>')<EOL><DEDENT>
Get password of the username for the service