python check if not null or empty