python if not none or empty