variable testing in python