The error comes up, because you are using the wrong syntax. It should be usernams.append instead of usernames = usernames.append
usernams.append
usernames = usernames.append