def getpwnam(self, username):
    for user in self._users:
        if (user[0] == username):
            return user
    raise KeyError()
def getpwnam(self, username):
    for user in self._users:
        if (user[0] == username):
            return user
    raise KeyError()