old_contents: import begin
  import json
  import os
  import sys
  
  util_parent = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
  util_path = os.path.join(util_parent, 'util')
  sys.path.append(util_path)
  
  import abstractprocess
  
  def get_script_dir():
      path = os.path.dirname(os.path.realpath(__file__))
      return path
  
  
  def get_sys_info():
      script_path = os.path.join(get_script_dir(), '_sysinfo.py')
      script_cmd  = [script_path]
      proc = abstractprocess.Process("local", command = script_cmd)
      result = proc.get_output()
      if result["returncode"] != 0:
          print("Cannot get system info. Exiting.")
          print(result)
          exit(1)
      json_info = result["out"]
      dic_info = json.loads(json_info)
      return dic_info
  
  
  @begin.start
  def main():
      info = get_sys_info()
      print(json.dumps(info, sort_keys=True,  indent=4, separators=(',', ': ')))
  
new_contents: import begin
  import json
  import os
  import sys
  
  from util import abstractprocess
  
  def get_script_dir():
      path = os.path.dirname(os.path.realpath(__file__))
      return path
  
  
  def get_sys_info():
      script_path = os.path.join(get_script_dir(), '_sysinfo.py')
      script_cmd  = [script_path]
      proc = abstractprocess.Process("local", command = script_cmd)
      result = proc.get_output()
      if result["returncode"] != 0:
          print("Cannot get system info. Exiting.")
          print(result)
          exit(1)
      json_info = result["out"]
      dic_info = json.loads(json_info)
      return dic_info
  
  
  @begin.start
  def main():
      info = get_sys_info()
      print(json.dumps(info, sort_keys=True,  indent=4, separators=(',', ': ')))
  
subject: clean abstractprocess call in sysinfo