python if string not null or empty