Made the lambda statement more resistant to errors

Made the statement better

pylint fix

Accidently left off parameter

Removed logout