python practice - login and search