The Smart Cube interview question

how would you remove stop words? (wanted python code)