python if string is not null or empty