old_contents: #!/usr/local/bin/python
  import argparse
  import yaml
  import sys
  import os, os.path
  import mdb_code_versioning
  import modeldb.utils.ConfigConstants as constants
  from modeldb.basic.ModelDbSyncerBase import *
  from modeldb.utils.ConfigUtils import ConfigReader
  
  # parse command line arguments
  parser = argparse.ArgumentParser(description='ModelDB command line entry point')
  parser.add_argument('--config', nargs='?', default='../syncer.json',
      help='Configuration File. Default at ../syncer.json')
  parser.add_argument('--expt', nargs='?',
      help='Name of an experiment defined in config, otherwise default used')
  parser.add_argument('script', nargs='+',
      help='Script to be invoked to run the experiment')
  args = parser.parse_args()
  
  config = ConfigReader(args.config)
  versioning_info = config.get_versioning_information()
  sha = None
  if versioning_info:
      sha = mdb_code_versioning.version(versioning_info)
      if not sha:
          print "Unable to version code. See errors above."
  
  # connect to modeldb and create an experiment run
  syncer = Syncer.create_syncer_from_config(args.config, args.expt, sha)
  
  # call the remainder of the script with the additional information
  args.script.append(str(syncer.experiment_run.id))
  script_cmd = ' '.join(args.script)
  os.system(script_cmd)
  
  sys.exit(0)
  
  
  
new_contents: #!/usr/local/bin/python
  import argparse
  import yaml
  import sys
  import os, os.path
  import mdb_code_versioning
  from modeldb.basic.ModelDbSyncerBase import *
  from modeldb.utils.ConfigUtils import ConfigReader
  
  # parse command line arguments
  parser = argparse.ArgumentParser(description='ModelDB command line entry point')
  parser.add_argument('--config', nargs='?', default='../syncer.json',
      help='Configuration File. Default at ../syncer.json')
  parser.add_argument('--expt', nargs='?',
      help='Name of an experiment defined in config, otherwise default used')
  parser.add_argument('script', nargs='+',
      help='Script to be invoked to run the experiment')
  args = parser.parse_args()
  
  config = ConfigReader(args.config)
  versioning_info = config.get_versioning_information()
  sha = None
  if versioning_info:
      sha = mdb_code_versioning.version(versioning_info)
      if not sha:
          print "Unable to version code. See errors above."
  
  # connect to modeldb and create an experiment run
  syncer = Syncer.create_syncer_from_config(args.config, args.expt, sha)
  
  # call the remainder of the script with the additional information
  args.script.append(str(syncer.experiment_run.id))
  script_cmd = ' '.join(args.script)
  os.system(script_cmd)
  
  sys.exit(0)
  
  
  
subject: remove unnecessary import from mdb.py