When you have two boolean values, a and b, if you want to find out if both a and b are true, use * instead of and:
if a and b: #7 chars vs
if a*b: #3 chars if either value is false, it will evaluate as 0 in that statement, and an integer value is only true if it is 1nonzero.