We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Dissallow python 3.5.1
### What was wrong?

It looks like `typing.NewType` may not be available in python 3.5.1

https://github.com/ethereum/web3.py/issues/1091

### How can it be fixed?

Check what version `NewType` was added and restrict our python versions as declared in `setup.py` to be `>=` that version

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 from setuptools import (
4     find_packages,
5     setup,
6 )
7 
8 extras_require = {
9     'tester': [
10         "eth-tester[py-evm]==0.1.0-beta.32",
11         "py-geth>=2.0.1,<3.0.0",
12     ],
13     'testrpc': ["eth-testrpc>=1.3.3,<2.0.0"],
14     'linter': [
15         "flake8==3.4.1",
16         "isort>=4.2.15,<5",
17     ],
18     'docs': [
19         "mock",
20         "sphinx-better-theme>=0.1.4",
21         "click>=5.1",
22         "configparser==3.5.0",
23         "contextlib2>=0.5.4",
24         #"eth-testrpc>=0.8.0",
25         #"ethereum-tester-client>=1.1.0",
26         "ethtoken",
27         "py-geth>=1.4.0",
28         "py-solc>=0.4.0",
29         "pytest>=2.7.2",
30         "sphinx",
31         "sphinx_rtd_theme>=0.1.9",
32         "toposort>=1.4",
33         "urllib3",
34         "web3>=2.1.0",
35         "wheel"
36     ],
37     'dev': [
38         "bumpversion",
39         "flaky>=3.3.0",
40         "hypothesis>=3.31.2",
41         "pytest>=3.5.0,<4",
42         "pytest-mock==1.*",
43         "pytest-pythonpath>=0.3",
44         "pytest-watch==4.*",
45         "pytest-xdist==1.*",
46         "setuptools>=36.2.0",
47         "tox>=1.8.0",
48         "tqdm",
49         "when-changed"
50     ]
51 }
52 
53 extras_require['dev'] = (
54     extras_require['tester'] +
55     extras_require['linter'] +
56     extras_require['docs'] +
57     extras_require['dev']
58 )
59 
60 setup(
61     name='web3',
62     # *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
63     version='4.7.1',
64     description="""Web3.py""",
65     long_description_markdown_filename='README.md',
66     author='Piper Merriam',
67     author_email='pipermerriam@gmail.com',
68     url='https://github.com/ethereum/web3.py',
69     include_package_data=True,
70     install_requires=[
71         "toolz>=0.9.0,<1.0.0;implementation_name=='pypy'",
72         "cytoolz>=0.9.0,<1.0.0;implementation_name=='cpython'",
73         "eth-abi>=1.2.0,<2.0.0",
74         "eth-account>=0.2.1,<0.4.0",
75         "eth-utils>=1.0.1,<2.0.0",
76         "hexbytes>=0.1.0,<1.0.0",
77         "lru-dict>=1.1.6,<2.0.0",
78         "eth-hash[pycryptodome]>=0.2.0,<1.0.0",
79         "requests>=2.16.0,<3.0.0",
80         "websockets>=6.0.0,<7.0.0",
81         "pypiwin32>=223;platform_system=='Windows'",
82     ],
83     setup_requires=['setuptools-markdown'],
84     python_requires='>=3.5, <4',
85     extras_require=extras_require,
86     py_modules=['web3', 'ens'],
87     license="MIT",
88     zip_safe=False,
89     keywords='ethereum',
90     packages=find_packages(exclude=["tests", "tests.*"]),
91     classifiers=[
92         'Development Status :: 5 - Production/Stable',
93         'Intended Audience :: Developers',
94         'License :: OSI Approved :: MIT License',
95         'Natural Language :: English',
96         'Programming Language :: Python :: 3',
97         'Programming Language :: Python :: 3.5',
98         'Programming Language :: Python :: 3.6',
99     ],
100 )
101
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -81,7 +81,7 @@
         "pypiwin32>=223;platform_system=='Windows'",
     ],
     setup_requires=['setuptools-markdown'],
-    python_requires='>=3.5, <4',
+    python_requires='>=3.5.2, <4',
     extras_require=extras_require,
     py_modules=['web3', 'ens'],
     license="MIT",

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -81,7 +81,7 @@\n         \"pypiwin32>=223;platform_system=='Windows'\",\n     ],\n     setup_requires=['setuptools-markdown'],\n-    python_requires='>=3.5, <4',\n+    python_requires='>=3.5.2, <4',\n     extras_require=extras_require,\n     py_modules=['web3', 'ens'],\n     license=\"MIT\",\n", "issue": "Dissallow python 3.5.1\n### What was wrong?\r\n\r\nIt looks like `typing.NewType` may not be available in python 3.5.1\r\n\r\nhttps://github.com/ethereum/web3.py/issues/1091\r\n\r\n### How can it be fixed?\r\n\r\nCheck what version `NewType` was added and restrict our python versions as declared in `setup.py` to be `>=` that version\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n    find_packages,\n    setup,\n)\n\nextras_require = {\n    'tester': [\n        \"eth-tester[py-evm]==0.1.0-beta.32\",\n        \"py-geth>=2.0.1,<3.0.0\",\n    ],\n    'testrpc': [\"eth-testrpc>=1.3.3,<2.0.0\"],\n    'linter': [\n        \"flake8==3.4.1\",\n        \"isort>=4.2.15,<5\",\n    ],\n    'docs': [\n        \"mock\",\n        \"sphinx-better-theme>=0.1.4\",\n        \"click>=5.1\",\n        \"configparser==3.5.0\",\n        \"contextlib2>=0.5.4\",\n        #\"eth-testrpc>=0.8.0\",\n        #\"ethereum-tester-client>=1.1.0\",\n        \"ethtoken\",\n        \"py-geth>=1.4.0\",\n        \"py-solc>=0.4.0\",\n        \"pytest>=2.7.2\",\n        \"sphinx\",\n        \"sphinx_rtd_theme>=0.1.9\",\n        \"toposort>=1.4\",\n        \"urllib3\",\n        \"web3>=2.1.0\",\n        \"wheel\"\n    ],\n    'dev': [\n        \"bumpversion\",\n        \"flaky>=3.3.0\",\n        \"hypothesis>=3.31.2\",\n        \"pytest>=3.5.0,<4\",\n        \"pytest-mock==1.*\",\n        \"pytest-pythonpath>=0.3\",\n        \"pytest-watch==4.*\",\n        \"pytest-xdist==1.*\",\n        \"setuptools>=36.2.0\",\n        \"tox>=1.8.0\",\n        \"tqdm\",\n        \"when-changed\"\n    ]\n}\n\nextras_require['dev'] = (\n    extras_require['tester'] +\n    extras_require['linter'] +\n    extras_require['docs'] +\n    extras_require['dev']\n)\n\nsetup(\n    name='web3',\n    # *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.\n    version='4.7.1',\n    description=\"\"\"Web3.py\"\"\",\n    long_description_markdown_filename='README.md',\n    author='Piper Merriam',\n    author_email='pipermerriam@gmail.com',\n    url='https://github.com/ethereum/web3.py',\n    include_package_data=True,\n    install_requires=[\n        \"toolz>=0.9.0,<1.0.0;implementation_name=='pypy'\",\n        \"cytoolz>=0.9.0,<1.0.0;implementation_name=='cpython'\",\n        \"eth-abi>=1.2.0,<2.0.0\",\n        \"eth-account>=0.2.1,<0.4.0\",\n        \"eth-utils>=1.0.1,<2.0.0\",\n        \"hexbytes>=0.1.0,<1.0.0\",\n        \"lru-dict>=1.1.6,<2.0.0\",\n        \"eth-hash[pycryptodome]>=0.2.0,<1.0.0\",\n        \"requests>=2.16.0,<3.0.0\",\n        \"websockets>=6.0.0,<7.0.0\",\n        \"pypiwin32>=223;platform_system=='Windows'\",\n    ],\n    setup_requires=['setuptools-markdown'],\n    python_requires='>=3.5, <4',\n    extras_require=extras_require,\n    py_modules=['web3', 'ens'],\n    license=\"MIT\",\n    zip_safe=False,\n    keywords='ethereum',\n    packages=find_packages(exclude=[\"tests\", \"tests.*\"]),\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: MIT License',\n        'Natural Language :: English',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import (\n    find_packages,\n    setup,\n)\n\nextras_require = {\n    'tester': [\n        \"eth-tester[py-evm]==0.1.0-beta.32\",\n        \"py-geth>=2.0.1,<3.0.0\",\n    ],\n    'testrpc': [\"eth-testrpc>=1.3.3,<2.0.0\"],\n    'linter': [\n        \"flake8==3.4.1\",\n        \"isort>=4.2.15,<5\",\n    ],\n    'docs': [\n        \"mock\",\n        \"sphinx-better-theme>=0.1.4\",\n        \"click>=5.1\",\n        \"configparser==3.5.0\",\n        \"contextlib2>=0.5.4\",\n        #\"eth-testrpc>=0.8.0\",\n        #\"ethereum-tester-client>=1.1.0\",\n        \"ethtoken\",\n        \"py-geth>=1.4.0\",\n        \"py-solc>=0.4.0\",\n        \"pytest>=2.7.2\",\n        \"sphinx\",\n        \"sphinx_rtd_theme>=0.1.9\",\n        \"toposort>=1.4\",\n        \"urllib3\",\n        \"web3>=2.1.0\",\n        \"wheel\"\n    ],\n    'dev': [\n        \"bumpversion\",\n        \"flaky>=3.3.0\",\n        \"hypothesis>=3.31.2\",\n        \"pytest>=3.5.0,<4\",\n        \"pytest-mock==1.*\",\n        \"pytest-pythonpath>=0.3\",\n        \"pytest-watch==4.*\",\n        \"pytest-xdist==1.*\",\n        \"setuptools>=36.2.0\",\n        \"tox>=1.8.0\",\n        \"tqdm\",\n        \"when-changed\"\n    ]\n}\n\nextras_require['dev'] = (\n    extras_require['tester'] +\n    extras_require['linter'] +\n    extras_require['docs'] +\n    extras_require['dev']\n)\n\nsetup(\n    name='web3',\n    # *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.\n    version='4.7.1',\n    description=\"\"\"Web3.py\"\"\",\n    long_description_markdown_filename='README.md',\n    author='Piper Merriam',\n    author_email='pipermerriam@gmail.com',\n    url='https://github.com/ethereum/web3.py',\n    include_package_data=True,\n    install_requires=[\n        \"toolz>=0.9.0,<1.0.0;implementation_name=='pypy'\",\n        \"cytoolz>=0.9.0,<1.0.0;implementation_name=='cpython'\",\n        \"eth-abi>=1.2.0,<2.0.0\",\n        \"eth-account>=0.2.1,<0.4.0\",\n        \"eth-utils>=1.0.1,<2.0.0\",\n        \"hexbytes>=0.1.0,<1.0.0\",\n        \"lru-dict>=1.1.6,<2.0.0\",\n        \"eth-hash[pycryptodome]>=0.2.0,<1.0.0\",\n        \"requests>=2.16.0,<3.0.0\",\n        \"websockets>=6.0.0,<7.0.0\",\n        \"pypiwin32>=223;platform_system=='Windows'\",\n    ],\n    setup_requires=['setuptools-markdown'],\n    python_requires='>=3.5.2, <4',\n    extras_require=extras_require,\n    py_modules=['web3', 'ens'],\n    license=\"MIT\",\n    zip_safe=False,\n    keywords='ethereum',\n    packages=find_packages(exclude=[\"tests\", \"tests.*\"]),\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: MIT License',\n        'Natural Language :: English',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n    ],\n)\n", "path": "setup.py"}]}