The Python script was a terrible idea. No matter what your opinion of the equivalence between real property and email accounts is, he essentially played russian roulette with many thousands of dollars of legal fees.
Just assume the passwords work and move from there.
Just assume the passwords work and move from there.