old_contents: #! /usr/bin/env python
  
  ### a simple script that will call K2fov
  from __future__ import division, print_function
  import sys
  
  try:
      import K2fov
  except ImportError:
      print('You need K2fov installed: pip install K2fov')
      sys.exit(1)
  
  import argparse
  
  if __name__ == '__main__':
      parser = argparse.ArgumentParser(
          description='Run K2onSilicon to find which targets in a \
          list call on active silicon for a given K2 campaign.')
      parser.add_argument('csv_file',
          help='Name of input csv file with targets, column are \
          Ra_degrees, Dec_degrees, Kepmag', type=str)
      parser.add_argument('campaign',
          help='K2 Campaign number', type=int)
      args = parser.parse_args()
  
      K2fov.K2onSilicon(args.csv_file,args.campaign)
  
  
  
new_contents: #! /usr/bin/env python
  # A simple script that will call the K2fov.K2onSilicon() function
  import sys
  
  try:
      from K2fov.K2onSilicon import K2onSilicon_main
  except ImportError:
      print('You need K2fov installed: pip install K2fov')
      sys.exit(1)
  
  if __name__ == '__main__':
      K2onSilicon_main()
  
subject: make runK2onSilicon call K2onSilicon_main (avoids code duplication)