pyflakes for login.py and generate_family_file.py

I change login too, to accept username as an argumant

Change-Id: I47b92bf0667cba035ae215a7aa3d697f07b9c6c2
Merge "pyflakes for login.py and generate_family_file.py"