add-login&homepage's-foreground(python part)