Python code for tweet classifications