old_contents: #!/usr/bin/env python
  
  """ Setup script. Used by easy_install and pip. """
  
  import os
  from setuptools import setup, find_packages
  from setuptools.command.test import test
  import sys
  
  
  class Tox(test):
      user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
  
      def initialize_options(self):
          test.initialize_options(self)
          self.tox_args = None
  
      def finalize_options(self):
          test.finalize_options(self)
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          import tox
          import shlex
          args = self.tox_args
          if args:
              args = shlex.split(self.tox_args)
          errno = tox.cmdline(args=args)
          sys.exit(errno)
  
  
  def get_version():
      try:
          # get version from './VERSION'
          src_root = os.path.dirname(__file__)
          if not src_root:
              src_root = '.'
  
          with open(src_root + '/VERSION', 'r') as f:
              version = f.readline ().strip()
  
          return version
  
      except Exception as e:
          raise RuntimeError('Could not extract version: %s' % e)
  
  setup_args = {
      'name': 'respawn',
      'version': get_version(),
      'description': 'AWS CloudFormation Template generator from Yaml specifications.',
      'url': 'http://radical-cybertools.github.io/saga-python/',
      'license': 'ISC',
      'keywords': 'aws cloudformation yaml',
      'classifiers': [
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'Environment :: Console',
          'License :: OSI Approved :: ISC License (ISCL)',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Topic :: Utilities',
          'Topic :: System :: Systems Administration',
          'Operating System :: OS Independent'
      ],
      'packages': find_packages(),
      'package_data': {'respawn': ['VERSION']},
      'entry_points': {
          'console_scripts': [
              'respawn=respawn.cli:generate',
          ],
      },
      'install_requires': [
          'cfn-pyplates',
          'Jinja2',
          'boto3',
          'botocore'
      ],
      'tests_require': ['tox'],
      'cmdclass': {'test': Tox},
      'zip_safe': False,
  }
  
  setup(**setup_args)
  
  
new_contents: #!/usr/bin/env python
  
  """ Setup script. Used by easy_install and pip. """
  
  import os
  from setuptools import setup, find_packages
  from setuptools.command.test import test
  import sys
  
  
  class Tox(test):
      user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
  
      def initialize_options(self):
          test.initialize_options(self)
          self.tox_args = None
  
      def finalize_options(self):
          test.finalize_options(self)
          self.test_args = []
          self.test_suite = True
  
      def run_tests(self):
          import tox
          import shlex
          args = self.tox_args
          if args:
              args = shlex.split(self.tox_args)
          errno = tox.cmdline(args=args)
          sys.exit(errno)
  
  
  def get_version():
      try:
          # get version from './VERSION'
          src_root = os.path.dirname(__file__)
          if not src_root:
              src_root = '.'
  
          with open(src_root + '/VERSION', 'r') as f:
              version = f.readline ().strip()
  
          return version
  
      except Exception as e:
          raise RuntimeError('Could not extract version: %s' % e)
  
  # Check Python version. Required > 2.7, <3.x
  if  sys.hexversion < 0x02070000 or sys.hexversion >= 0x03000000:
      raise RuntimeError("respawn requires Python 2.x (2.7 or higher)")
  
  setup_args = {
      'name': 'respawn',
      'version': get_version(),
      'description': 'AWS CloudFormation Template generator from Yaml specifications.',
      'url': 'http://radical-cybertools.github.io/saga-python/',
      'license': 'ISC',
      'keywords': 'aws cloudformation yaml',
      'classifiers': [
          'Development Status :: 4 - Beta',
          'Intended Audience :: Developers',
          'Environment :: Console',
          'License :: OSI Approved :: ISC License (ISCL)',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Topic :: Utilities',
          'Topic :: System :: Systems Administration',
          'Operating System :: OS Independent'
      ],
      'packages': find_packages(),
      'package_data': {'respawn': ['VERSION']},
      'entry_points': {
          'console_scripts': [
              'respawn=respawn.cli:generate',
          ],
      },
      'install_requires': [
          'cfn-pyplates',
          'Jinja2',
          'boto3',
          'botocore'
      ],
      'tests_require': ['tox'],
      'cmdclass': {'test': Tox},
      'zip_safe': False,
  }
  
  setup(**setup_args)
  
  
subject: Add restriction to Python 2.7