old_contents: import praw
  import re
  
  import settings as settings
  import funcs
  
  accountMaps = funcs.readAccountsFile("accounts.txt")
  
  r = praw.Reddit(user_agent='ATZ flair bot!  Pipe Battle.Net data to Reddit')
  r.login(settings.reddituser, settings.redditpass)
  subreddit = r.get_subreddit("AllThingsZerg")
  
  def getCurrentLeagueForAccountMap(accountMap):
    def getLeagueForRedditUser(redditName):
      return r.get_flair(subreddit, redditName)
    return getLeagueForRedditUser(accountMap['redditName'])
  
  currentLeagues = map(getCurrentLeagueForAccountMap, accountMaps)
  
  print 'currentLeagues'
  print currentLeagues
  
  def getNewLeagueForAccountMap(accountMap):
    league = funcs.getLeague(settings.regions[accountMap['region']], accountMap['bnet'])
    return (accountMap['redditName'], league)
  
  newLeagues = map(getNewLeagueForAccountMap, accountMaps)
  zipped = zip(accountMaps, currentLeagues, newLeagues)
  
  print 'zipped'
  print zipped
  
  def isLeagueDifferent(zippedUser):
    oldLeague = zippedUser[1]['flair_css_class']
    newLeague = zippedUser[2][1][0].lower()
    oldLeagueParsed = re.search("([A-z]+) ", oldLeague).group(1).lower()
    return newLeague != oldLeagueParsed
  
  print 'changes'
  changes = filter(isLeagueDifferent, zipped)
  print changes
  
  def updateChange(zippedUser):
    funcs.updateUserFlair(subreddit, zippedUser[1]['user'], zippedUser[1]['flair_text'], zippedUser[0]['region'], zippedUser[2][1])
  
  map(updateChange, changes)
  
new_contents: import praw
  import re
  
  import settings as settings
  import funcs
  
  accountMaps = funcs.readAccountsFile("accounts.txt")
  
  r = praw.Reddit(user_agent='ATZ flair bot!  Pipe Battle.Net data to Reddit')
  r.login(settings.reddituser, settings.redditpass)
  subreddit = r.get_subreddit("AllThingsZerg")
  
  def getCurrentLeagueForAccountMap(accountMap):
    def getLeagueForRedditUser(redditName):
      return r.get_flair(subreddit, redditName)
    return getLeagueForRedditUser(accountMap['redditName'])
  
  currentLeagues = map(getCurrentLeagueForAccountMap, accountMaps)
  
  print 'currentLeagues'
  print currentLeagues
  
  def getNewLeagueForAccountMap(accountMap):
    league = funcs.getLeague(settings.regions[accountMap['region']], accountMap['bnet'])
    return (accountMap['redditName'], league)
  
  newLeagues = map(getNewLeagueForAccountMap, accountMaps)
  zipped = zip(accountMaps, currentLeagues, newLeagues)
  
  print 'zipped'
  print zipped
  
  def isLeagueDifferent(zippedUser):
    oldLeague = zippedUser[1]['flair_css_class']
    if oldLeague == None:
      return True
    matches = re.search("([A-z]+) ", oldLeague)
    if matches == None:
      return True
    oldLeagueParsed = matches.group(1).lower()
    newLeague = zippedUser[2][1][0].lower()
    return newLeague != oldLeagueParsed
  
  print 'changes'
  changes = filter(isLeagueDifferent, zipped)
  print changes
  
  def updateChange(zippedUser):
    funcs.updateUserFlair(subreddit, zippedUser[1]['user'], zippedUser[1]['flair_text'], zippedUser[0]['region'], zippedUser[2][1])
  
  map(updateChange, changes)
  
subject: add check in case old league doesn't exist safety protects from script crash