You are declaring the rows variable outside of the scope where it is used to form the passwords variable, try declaring it before the with line as rows = [].
rows
passwords
with
rows = []