new_contents: import inspect
  import os
  import urllib.request
  import urllib.error
  
  def getCaller():
      frm = inspect.stack()[2]
      mod = inspect.getmodule(frm[0])
      temp = mod.__name__
      return temp.split('.')[-1]
  
  #=============================
  
  def addToCache(string, plugin, filename):
      with open('cache\\{}_{}'.format(plugin, filename), 'w') as f:
          f.write(string)
  
  def downloadToCache(url, filename):
      fullFilename = 'cache/{}_{}'.format(getCaller(), filename)
      if os.path.isfile(fullFilename):
          return 1
      else:
          try:
              urllib.request.urlretrieve(url, fullFilename)
              return 1
          except urllib.error.HTTPError as e:
              return -1
          except urllib.error.URLError as e:
              return -2
subject: Add basic caching library