This change removes the support from setup.py and the testing files, and
adds an assertion to py3compat that will crash when pyelftools is run
w/ Python 2
Doesn't remove compatibility code, yet
Updates #415
     runs-on: ${{ matrix.os }}
     strategy:
       matrix:
-        python-version: [2.7, 3.7, 3.9]
+        python-version: [3.7, 3.9, 3.10]
         os: [ubuntu-latest]
 
     steps:
 
 #-------------------------------------------------------------------------------
 import sys
 PY3 = sys.version_info[0] == 3
+assert PY3, '''\
+Python 2 is no longer supported by pyelftools; if you need to use Python 2,
+please download an older pyelftools version (such as version 0.29).
+'''
 
 
 if PY3:
 
     url='https://github.com/eliben/pyelftools',
     platforms='Cross Platform',
     classifiers = [
-        'Programming Language :: Python :: 2',
         'Programming Language :: Python :: 3',
         ],
 
 
 [tox]
-envlist = py27,py38
+envlist = py38
 
 [testenv]
 setenv =