def _get_oldest_tweet(locale, n=0):
 try:
  return Tweet.objects.filter(locale=locale).order_by('-created')[n]
 except IndexError:
  return None

def _get_oldest_tweet ( locale , n = 0 ) : try : return Tweet . objects . filter ( locale = locale ) . order_by ( '-created' ) [ n ] except IndexError : return None
returns the nth oldest tweet per locale .