def METHOD_NAME(self, websites):
    users = []
    for webs in websites:
        try:
            itemPackage = webs.package
            package = {'name': itemPackage.packageName, 'owner': webs.admin.userName}
            user = {}
            if self.id:
                user['id'] = pwd.getpwnam(webs.externalApp).pw_uid
            if self.un:
                user['username'] = webs.externalApp
            if self.ow:
                if webs.admin.owner == 1:
                    user['owner'] = webs.admin.userName
                else:
                    from loginSystem.models import Administrator
                    oAdmin = Administrator.objects.get(pk=webs.admin.owner)
                    user['owner'] = oAdmin.userName
            if self.domain:
                user['domain'] = webs.domain
            if self.package:
                user['package'] = package
            if self.email:
                user['email'] = webs.adminEmail
            if self.localecode:
                user['locale_code'] = "EN_us"
            if self.packageName != None:
                if self.package:
                    if self.packageName == user['package']['name'] and self.packageOwner == user['package']['owner']:
                        pass
                    else:
                        continue
            if self.uid !=None:
                if self.id:
                    if self.uid == user['id']:
                        users.append(user)
                else:
                    users.append(user)
            else:
                users.append(user)
        except BaseException as msg:
            pass
    final = {'data': users, 'metadata': self.initialMeta}
    print(json.dumps(final))