Print Tweets/Mentions/Retweets
I would suggest to create following new classes:


User, which stores information about user, like user_id, user_location
Text, which stores the tweet text, the language of the tweet, may be the keywords
Tweet, which contains objects of User ,Text and some other information about the tweet


I am assuming that you will be storing all this data into a database and the above mentioned structure (with some mild changes, based on your requirement) can be used to create a 3-NF database.

Another suggestion is "not" using stdin. Create a new file "Twitter.py" having function readTweet which will return tweet. This makes it easier to change the source of the tweet in the later part of the development. Suppose you want to directly take tweet from twitter API, then you just need to change the function 

Your main function will look like following:

def main():

    for tweet in Twitter.getTweets():

        tweet_time = tweet.getTime() 

        if tweet.isRetweeted:
            print "do something 0"
        elif tweet.hasEntities and len(tweet.Usermentions) &gt; 0:
            for mention in tweet.userMentions:
                print "do something 1"
        else:
            print "do something 2"