Clean up tweets

from the data science book
disclaimer: I didn’t write it initially, typed out of the book :)