python if input is not empty