def check_loginprofile_plus_akeys(self, iamuser_item):
        """
        alert when an IAM user has a login profile and API access via access keys.
        An account should be used Either for API access OR for console access, but maybe not both.
        """
        if not iamuser_item.config.get('loginprofile', None):
            return

        akeys = iamuser_item.config.get('accesskeys', {})
        for akey in akeys.keys():
            if akeys[akey] in u'status' and akeys[akey][u'status'] == u'Active':
                self.add_issue(1, 'User with password login and API access.', iamuser_item)
                return
dataset/ETHPy150Open Netflix/security_monkey/security_monkey/auditors/iam/iam_user.py/IAMUserAuditor.check_loginprofile_plus_akeys/swapped operands of `in`