python if not null or empty