python if not none or empty string