Python Keep Rows Based Meaning In Text