Change styling on index to left-align. Comment out submit button. WIP on Javascript AJAX request on click.
Kate's suggestions: working with Twitter rate limits, change num of requests, try/catch blocks

 - Moved try/catch blocks in flask file to encompass 2 main API calls
 - Check if friend_scores dictionary contains keys, return it regardless of error if dictionary contains values that could be represented on frontend
 - WIP: add flash message in case of error before dict contains values
 - Add commented-out placeholder for memcache code in friends.py, to cache json responses from twitter. (Alternative is to place memcache code in flask file, to store users and scores ("cooked") rather than json)
Modify Hashtag class method to return a dictionary (via dictionary comprehension) instead of a list.

This saves time by looking up hashtags by hash value instead of searching all 900 values in the list for each hashtag in a timeline.
Was causing high degree of slowness when processing timelines.
Modify simplescore to compare user's hashtags against a hashtag dict, not list. Sum dict values to calculate score rather than for-loops.

Change main() to create a class instance instead of call seq of functions.
Fixed API exceeding rate limit problem by reducing num of tweets requested per person to 20.

 - Tried using logging to record api requests
 - However the key was that the tweepy cursor was making multiple requests per single request I was making because it only retrieves 20 statuses at a time.
 - Now that NUM_TWEETS is at 20, only a single GET request is made per friend.
Pass in POLITICAL_HASHTAGS, a constant representing hashtags in my database, to score class.

This prevents repeated requests made to database, which was slowing down the program.
Political_hashtags dict created when Flask POST request is received.
Dump python dictionary as json from /display route, without redirect.

Instead of redirecting to a /json route or rendering template with variable, return json from /display.
JSON appears in the #results div.
Remove Jinja templating from index.html, replace .post request with .ajax request.

Pass the screen name from the form field as data using the POST rquest.
On success, json results added to text of #results div.