python check if variable is not none