old_contents: """
  This is a template script - an example of how a CEA script should be set up.
  
  NOTE: ADD YOUR SCRIPT'S DOCUMENTATION HERE (what, why, include literature references)
  """
  from __future__ import division
  from __future__ import print_function
  
  import os
  import cea.config
  import cea.inputlocator
  
  __author__ = "Daren Thomas"
  __copyright__ = "Copyright 2018, Architecture and Building Systems - ETH Zurich"
  __credits__ = ["Daren Thomas"]
  __license__ = "MIT"
  __version__ = "0.1"
  __maintainer__ = "Daren Thomas"
  __email__ = "cea@arch.ethz.ch"
  __status__ = "Production"
  
  
  def template(locator, archetypes):
      """this is where the action happens if it is more than a few lines in ``main``.
      NOTE: ADD YOUR SCRIPT'S DOCUMENATION HERE (how)
      NOTE: RENAME THIS FUNCTION (SHOULD PROBABLY BE THE SAME NAME AS THE MODULE)
      """
      pass
  
  
  def main(config):
      """
      This is the main entry point to your script. Any parameters used by your script must be present in the ``config``
      parameter. The CLI will call this ``main`` function passing in a ``config`` object after adjusting the configuration
      to reflect parameters passed on the command line - this is how the ArcGIS interface interacts with the scripts
      BTW.
  
      :param config:
      :type config: cea.config.Configuration
      :return:
      """
      assert os.path.exists(config.scenario), 'Scenario not found: %s' % config.scenario
      locator = cea.inputlocator.InputLocator(config.scenario)
  
      template(locator, config.scenario)
  
  
  if __name__ == '__main__':
      main(cea.config.Configuration())
  
new_contents: """
  This is a template script - an example of how a CEA script should be set up.
  
  NOTE: ADD YOUR SCRIPT'S DOCUMENTATION HERE (what, why, include literature references)
  """
  from __future__ import division
  from __future__ import print_function
  
  import os
  import cea.config
  import cea.inputlocator
  
  __author__ = "Daren Thomas"
  __copyright__ = "Copyright 2018, Architecture and Building Systems - ETH Zurich"
  __credits__ = ["Daren Thomas"]
  __license__ = "MIT"
  __version__ = "0.1"
  __maintainer__ = "Daren Thomas"
  __email__ = "cea@arch.ethz.ch"
  __status__ = "Production"
  
  
  def template(locator, archetypes):
      """this is where the action happens if it is more than a few lines in ``main``.
      NOTE: ADD YOUR SCRIPT'S DOCUMENATION HERE (how)
      NOTE: RENAME THIS FUNCTION (SHOULD PROBABLY BE THE SAME NAME AS THE MODULE)
      """
      pass
  
  
  def main(config):
      """
      This is the main entry point to your script. Any parameters used by your script must be present in the ``config``
      parameter. The CLI will call this ``main`` function passing in a ``config`` object after adjusting the configuration
      to reflect parameters passed on the command line / user interface
  
      :param config:
      :type config: cea.config.Configuration
      :return:
      """
      assert os.path.exists(config.scenario), 'Scenario not found: %s' % config.scenario
      locator = cea.inputlocator.InputLocator(config.scenario)
  
      template(locator, config.scenario)
  
  
  if __name__ == '__main__':
      main(cea.config.Configuration())
  
subject: Update template.py