python check if variable is string and not empty