text: import signal
  import sys
  import cx_Oracle
  import datetime
  import requests
  from requests.auth import HTTPBasicAuth
  import argparse
  import time
  from requests_futures.sessions import FuturesSession
  
  def close_down(signal, frame):
      global dbConnection, dbCursor
  
      print('tf_tests is shutting down ...')
      if dbCursor is not None:
          dbCursor.close()
  
      if dbConnection is not None:
          dbConnection.close()
  
      print('... done')
      sys.exit(0)
  
  signal.signal(signal.SIGINT, close_down)
  signal.signal(signal.SIGTERM, close_down)
  
  
  
  def do_infocheck(targetUrl, username, password):
      r = requests.get(targetUrl, auth=HTTPBasicAuth(username, password))
      return r
  
  
  def do_async_infocheck(session, targetUrl, username, password):
      r = session.get(targetUrl, auth=HTTPBasicAuth(username, password))
      return r
  
  
  def main():
      global dbConnection, dbCursor, records
  
      parser = argparse.ArgumentParser('tf_correct_manual_entries')
      parser.add_argument('--dbPort', '-d', help="database port", type=int, default=1521)
      parser.add_argument('--dbServer', '-s', help="production, staging, copy, integration", type=str, default='copy')
      parser.add_argument('--ws', '-w', help="web service to process files", type=str, default='http://localhost:8081')
      parser.add_argument('--maxRecords', '-m', help="maximum number of records to process", type=int, default=100)
      parser.add_argument('--wait', '-x', help="number of seconds to wait between iterations", type=int, default=60)
      parser.add_argument('--test', '-t', help="test to runs", type=str)
  
      args = parser.parse_args()
  
      username = 'web';
      password = 'reganamohcat';
      db_connections = {
          'production': 'tachodb/2tXEMfuuhxg4zI0G9l6Z@localhost:%s/TACHODB.MASTERNAUT.ENOVATION.NET' % (args.dbPort,),
          'staging': '',
          'copy': 'TACHOMANAGER_COPY/TACHOMANAGER_COPY@db.e-btc.eu:%s/DB11GCP.H2097793.STRATOSERVER.NET'% (args.dbPort,),
          'integration': 'TACHOMANAGER_DEMO/tachomanager_demo@db.e-btc.eu:%s/DB11G.H2097793.STRATOSERVER.NET'% (args.dbPort,)
      }
  
      '''
      r = do_infocheck('%s/support/infocheck' % (args.ws,), username, password)
      if r.status_code == 200:
          print(r.content)
      else:
          print('Error: %d' % (r.status_code,))
      '''
      session = FuturesSession()
      f1 = do_async_infocheck(session, '%s/support/infocheck' % (args.ws,), username, password)
      f2 = do_async_infocheck(session, '%s/support/infocheck' % (args.ws,), username, password)
  
      r1 = f1.result()
      r2 = f2.result()
  
      print('F1 content: %s', (r1.content))
      print('F2 content: %s', (r2.content))
  
  
  if __name__ == "__main__":
      main()