old_contents: #!/usr/bin/python
  import argparse
  import boto
  from boto_cli import configure_logging
  from boto_cli.iam.accountinfo import AccountInfo
  from boto_cli.iam.userinfo import UserInfo
  import logging
  log = logging.getLogger('boto_cli')
  import os
  import platform
  import sys
  
  # configure command line argument parsing
  parser = argparse.ArgumentParser(description='Validates AWS credentials and display account/user information')
  parser.add_argument("--access_key_id", dest='aws_access_key_id', help="Your AWS Access Key ID")
  parser.add_argument("--secret_access_key", dest='aws_secret_access_key', help="Your AWS Secret Access Key")
  parser.add_argument("-l", "--log", dest='log_level', default='WARNING',
                      choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
                      help="The logging level to use. [default: WARNING]")
  args = parser.parse_args()
  
  configure_logging(log, args.log_level)
  
  # execute business logic
  credentials = {'aws_access_key_id': args.aws_access_key_id, 'aws_secret_access_key': args.aws_secret_access_key}
  heading = "Validating credentials:"
  
  try:
      iam = boto.connect_iam(**credentials)
      userInfo = UserInfo(iam)
      user = userInfo.describe()
      accountInfo = AccountInfo(iam)
      account = accountInfo.describe(user)
      print "User name is '" + user.name + "' with id " + user.id
      print "Account alias is '" + account.alias + "' with id " + account.id
  except boto.exception.BotoServerError, e:
      log.error(e.error_message)
      # REVIEW: 13 denotes 'The data is invalid.' - in general it might be easier to go with just 1 for the use case at hand?
      sys.exit(13 if platform.system() == 'Windows' else os.EX_DATAERR)
  
new_contents: #!/usr/bin/python
  import argparse
  import boto
  from boto_cli import configure_logging
  from boto_cli.iam.accountinfo import AccountInfo
  from boto_cli.iam.userinfo import UserInfo
  import logging
  log = logging.getLogger('boto_cli')
  import os
  import platform
  import sys
  
  # configure command line argument parsing
  parser = argparse.ArgumentParser(description='Validates AWS credentials and display account/user information')
  parser.add_argument("--access_key_id", dest='aws_access_key_id', help="Your AWS Access Key ID")
  parser.add_argument("--secret_access_key", dest='aws_secret_access_key', help="Your AWS Secret Access Key")
  parser.add_argument("-l", "--log", dest='log_level', default='WARNING',
                      choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
                      help="The logging level to use. [default: WARNING]")
  args = parser.parse_args()
  
  configure_logging(log, args.log_level)
  
  # execute business logic
  credentials = {'aws_access_key_id': args.aws_access_key_id, 'aws_secret_access_key': args.aws_secret_access_key}
  heading = "Validating credentials:"
  
  try:
      iam = boto.connect_iam(**credentials)
      userInfo = UserInfo(iam)
      user = userInfo.describe()
      accountInfo = AccountInfo(iam)
      account = accountInfo.describe(user)
      print "User name is '" + user.name + "' with id " + user.id
      print "Account alias is '" + account.alias + "' with id " + account.id
  except boto.exception.BotoServerError, e:
      log.error(e.error_message)
      sys.exit(1)
  
subject: return 1 (regardless of platform) to indicate error