old_contents: #!/usr/bin/env python
  
  import ConfigParser
  import os
  
  CONF_DIR = '/home/pi/.config/geany'
  CONF_FILE = 'geany.conf'
  CONF_PATH = '%s/%s' % (CONF_DIR, CONF_FILE)
  
  config=ConfigParser.RawConfigParser()
  # preserve case of key strings
  config.optionxform = str
  
  config.add_section('project')
  config.set('project','project_file_path','/home/pi/javaLessons/answers')
  config.set('project','session_file','/home/pi/javaLessons/answers/001-LightUsingButton/001-LightUsingButton.geany')
  
  config.add_section('VTE')
  config.set('VTE','run_in_vte','true')
  
  config.add_section('build-menu')
  config.set('build-menu','error_regex','\[ERROR\] ([^:\[]+):?\[([0-9]+)')
  
  if not os.path.exists(CONF_DIR):
      os.makedirs(CONF_DIR)
  
  with open(CONF_PATH, 'wb') as configfile:
      config.write(configfile)
  
  
new_contents: #!/usr/bin/env python
  
  import ConfigParser
  import os
  
  CONF_DIR = '/home/pi/.config/geany'
  CONF_FILE = 'geany.conf'
  CONF_PATH = '%s/%s' % (CONF_DIR, CONF_FILE)
  
  config=ConfigParser.RawConfigParser()
  # preserve case of key strings
  config.optionxform = str
  
  config.add_section('project')
  config.set('project','project_file_path','/home/pi/javaLessons/answers')
  config.set('project','session_file','/home/pi/javaLessons/answers/001-LightUsingButton/001-LightUsingButton.geany')
  
  config.add_section('VTE')
  config.set('VTE','run_in_vte','true')
  config.set('VTE','skip_run_script','true')
  
  
  config.add_section('build-menu')
  config.set('build-menu','error_regex','\[ERROR\] ([^:\[]+):?\[([0-9]+)')
  
  if not os.path.exists(CONF_DIR):
      os.makedirs(CONF_DIR)
  
  with open(CONF_PATH, 'wb') as configfile:
      config.write(configfile)
  
  
subject: remove use of extra script for better visibility