old_contents: import boto3
  
  ec2 = boto3.client('ec2')
  regions = ec2.describe_regions()['Regions']
  
  for item in regions:
      print('name: %s, endpoint: %s' % (item['RegionName'], item['Endpoint']))
new_contents: #!/usr/bin/env python
  import boto3
  
  ec2 = boto3.client('ec2')
  regions = ec2.describe_regions()['Regions']
  
  for item in regions:
      print('name: %s, endpoint: %s' % (item['RegionName'], item['Endpoint']))
  
subject: Add script header