We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
kinto start fails: no module named functools32
```
kinto start
Starting subprocess with file monitor
2015-11-29 10:12:24,821 INFO  [venusian][MainThread] kinto 1.9.0 starting. 
Traceback (most recent call last):
  File "/var/www/kinto.leplat.re/venv/bin/kinto", line 9, in <module>
    load_entry_point('kinto==1.9.0', 'console_scripts', 'kinto')()
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/__main__.py", line 55, in main
    pserve.main(pserve_argv)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 60, in main
    return command.run()
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 366, in run
    global_conf=vars)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 401, in loadapp
    return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
    val = callable(*args, **kw)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/__init__.py", line 77, in main
    config.scan("kinto.views", **kwargs)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/config/__init__.py", line 974, in scan
    ignore=ignore)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/venusian/__init__.py", line 205, in scan
    __import__(modname)
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/views/buckets.py", line 12, in <module>
    from kinto.views.collections import Collection
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/views/collections.py", line 2, in <module>
    import jsonschema
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/__init__.py", line 12, in <module>
    from jsonschema.exceptions import (
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/exceptions.py", line 6, in <module>
    from jsonschema import _utils
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/_utils.py", line 6, in <module>
    from jsonschema.compat import str_types, MutableMapping, urlsplit
  File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/compat.py", line 39, in <module>
    from functools32 import lru_cache
ImportError: No module named functools32
```


--- 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 import os
2 import codecs
3 from setuptools import setup, find_packages
4 
5 here = os.path.abspath(os.path.dirname(__file__))
6 
7 
8 def read_file(filename):
9     """Open a related file and return its content."""
10     with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:
11         content = f.read()
12     return content
13 
14 README = read_file('README.rst')
15 CHANGELOG = read_file('CHANGELOG.rst')
16 CONTRIBUTORS = read_file('CONTRIBUTORS.rst')
17 
18 REQUIREMENTS = [
19     'waitress',
20     'cliquet>=2.13,<3',
21     'jsonschema',
22 ]
23 
24 POSTGRESQL_REQUIREMENTS = REQUIREMENTS + [
25     'cliquet[postgresql]>=2.13,<3'
26 ]
27 
28 MONITORING_REQUIREMENTS = REQUIREMENTS + [
29     'cliquet[monitoring]>=2.13,<3'
30 ]
31 
32 FXA_REQUIREMENTS = REQUIREMENTS + [
33     'cliquet-fxa'
34 ]
35 
36 ENTRY_POINTS = {
37     'paste.app_factory': [
38         'main = kinto:main',
39     ],
40     'console_scripts': [
41         'kinto = kinto.__main__:main'
42     ],
43 }
44 
45 DEPENDENCY_LINKS = [
46 ]
47 
48 setup(name='kinto',
49       version='1.11.0.dev0',
50       description='Kinto Web Service - Store, Sync, Share, and Self-Host.',
51       long_description=README + "\n\n" + CHANGELOG + "\n\n" + CONTRIBUTORS,
52       license='Apache License (2.0)',
53       classifiers=[
54           "Programming Language :: Python",
55           "Programming Language :: Python :: 2",
56           "Programming Language :: Python :: 2.7",
57           "Programming Language :: Python :: 3",
58           "Programming Language :: Python :: 3.4",
59           "Programming Language :: Python :: 3.5",
60           "Programming Language :: Python :: Implementation :: CPython",
61           "Programming Language :: Python :: Implementation :: PyPy",
62           "Topic :: Internet :: WWW/HTTP",
63           "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
64           "License :: OSI Approved :: Apache Software License"
65       ],
66       keywords="web services",
67       author='Mozilla Services',
68       author_email='services-dev@mozilla.com',
69       url='https://github.com/Kinto/kinto',
70       packages=find_packages(),
71       include_package_data=True,
72       zip_safe=False,
73       install_requires=REQUIREMENTS,
74       extras_require={
75           'postgresql': POSTGRESQL_REQUIREMENTS,
76           'monitoring': MONITORING_REQUIREMENTS,
77           'fxa': FXA_REQUIREMENTS,
78       },
79       entry_points=ENTRY_POINTS,
80       dependency_links=DEPENDENCY_LINKS)
81
```
--- 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
@@ -1,5 +1,6 @@
-import os
 import codecs
+import os
+import sys
 from setuptools import setup, find_packages
 
 here = os.path.abspath(os.path.dirname(__file__))
@@ -21,6 +22,11 @@
     'jsonschema',
 ]
 
+if sys.version_info < (3,):
+    REQUIREMENTS.extend([
+        'functools32',  # not installed by jsonschema with old pip versions.
+    ])
+
 POSTGRESQL_REQUIREMENTS = REQUIREMENTS + [
     'cliquet[postgresql]>=2.13,<3'
 ]

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,5 +1,6 @@\n-import os\n import codecs\n+import os\n+import sys\n from setuptools import setup, find_packages\n \n here = os.path.abspath(os.path.dirname(__file__))\n@@ -21,6 +22,11 @@\n     'jsonschema',\n ]\n \n+if sys.version_info < (3,):\n+    REQUIREMENTS.extend([\n+        'functools32',  # not installed by jsonschema with old pip versions.\n+    ])\n+\n POSTGRESQL_REQUIREMENTS = REQUIREMENTS + [\n     'cliquet[postgresql]>=2.13,<3'\n ]\n", "issue": "kinto start fails: no module named functools32\n```\nkinto start\nStarting subprocess with file monitor\n2015-11-29 10:12:24,821 INFO  [venusian][MainThread] kinto 1.9.0 starting. \nTraceback (most recent call last):\n  File \"/var/www/kinto.leplat.re/venv/bin/kinto\", line 9, in <module>\n    load_entry_point('kinto==1.9.0', 'console_scripts', 'kinto')()\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/__main__.py\", line 55, in main\n    pserve.main(pserve_argv)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py\", line 60, in main\n    return command.run()\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py\", line 366, in run\n    global_conf=vars)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py\", line 401, in loadapp\n    return loadapp(app_spec, name=name, relative_to=relative_to, **kw)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 247, in loadapp\n    return loadobj(APP, uri, name=name, **kw)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 272, in loadobj\n    return context.create()\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 710, in create\n    return self.object_type.invoke(self)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 146, in invoke\n    return fix_call(context.object, context.global_conf, **context.local_conf)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/util.py\", line 55, in fix_call\n    val = callable(*args, **kw)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/__init__.py\", line 77, in main\n    config.scan(\"kinto.views\", **kwargs)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/config/__init__.py\", line 974, in scan\n    ignore=ignore)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/venusian/__init__.py\", line 205, in scan\n    __import__(modname)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/views/buckets.py\", line 12, in <module>\n    from kinto.views.collections import Collection\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/views/collections.py\", line 2, in <module>\n    import jsonschema\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/__init__.py\", line 12, in <module>\n    from jsonschema.exceptions import (\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/exceptions.py\", line 6, in <module>\n    from jsonschema import _utils\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/_utils.py\", line 6, in <module>\n    from jsonschema.compat import str_types, MutableMapping, urlsplit\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/compat.py\", line 39, in <module>\n    from functools32 import lru_cache\nImportError: No module named functools32\n```\n\n", "before_files": [{"content": "import os\nimport codecs\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n    \"\"\"Open a related file and return its content.\"\"\"\n    with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:\n        content = f.read()\n    return content\n\nREADME = read_file('README.rst')\nCHANGELOG = read_file('CHANGELOG.rst')\nCONTRIBUTORS = read_file('CONTRIBUTORS.rst')\n\nREQUIREMENTS = [\n    'waitress',\n    'cliquet>=2.13,<3',\n    'jsonschema',\n]\n\nPOSTGRESQL_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet[postgresql]>=2.13,<3'\n]\n\nMONITORING_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet[monitoring]>=2.13,<3'\n]\n\nFXA_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet-fxa'\n]\n\nENTRY_POINTS = {\n    'paste.app_factory': [\n        'main = kinto:main',\n    ],\n    'console_scripts': [\n        'kinto = kinto.__main__:main'\n    ],\n}\n\nDEPENDENCY_LINKS = [\n]\n\nsetup(name='kinto',\n      version='1.11.0.dev0',\n      description='Kinto Web Service - Store, Sync, Share, and Self-Host.',\n      long_description=README + \"\\n\\n\" + CHANGELOG + \"\\n\\n\" + CONTRIBUTORS,\n      license='Apache License (2.0)',\n      classifiers=[\n          \"Programming Language :: Python\",\n          \"Programming Language :: Python :: 2\",\n          \"Programming Language :: Python :: 2.7\",\n          \"Programming Language :: Python :: 3\",\n          \"Programming Language :: Python :: 3.4\",\n          \"Programming Language :: Python :: 3.5\",\n          \"Programming Language :: Python :: Implementation :: CPython\",\n          \"Programming Language :: Python :: Implementation :: PyPy\",\n          \"Topic :: Internet :: WWW/HTTP\",\n          \"Topic :: Internet :: WWW/HTTP :: WSGI :: Application\",\n          \"License :: OSI Approved :: Apache Software License\"\n      ],\n      keywords=\"web services\",\n      author='Mozilla Services',\n      author_email='services-dev@mozilla.com',\n      url='https://github.com/Kinto/kinto',\n      packages=find_packages(),\n      include_package_data=True,\n      zip_safe=False,\n      install_requires=REQUIREMENTS,\n      extras_require={\n          'postgresql': POSTGRESQL_REQUIREMENTS,\n          'monitoring': MONITORING_REQUIREMENTS,\n          'fxa': FXA_REQUIREMENTS,\n      },\n      entry_points=ENTRY_POINTS,\n      dependency_links=DEPENDENCY_LINKS)\n", "path": "setup.py"}], "after_files": [{"content": "import codecs\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n    \"\"\"Open a related file and return its content.\"\"\"\n    with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:\n        content = f.read()\n    return content\n\nREADME = read_file('README.rst')\nCHANGELOG = read_file('CHANGELOG.rst')\nCONTRIBUTORS = read_file('CONTRIBUTORS.rst')\n\nREQUIREMENTS = [\n    'waitress',\n    'cliquet>=2.13,<3',\n    'jsonschema',\n]\n\nif sys.version_info < (3,):\n    REQUIREMENTS.extend([\n        'functools32',  # not installed by jsonschema with old pip versions.\n    ])\n\nPOSTGRESQL_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet[postgresql]>=2.13,<3'\n]\n\nMONITORING_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet[monitoring]>=2.13,<3'\n]\n\nFXA_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet-fxa'\n]\n\nENTRY_POINTS = {\n    'paste.app_factory': [\n        'main = kinto:main',\n    ],\n    'console_scripts': [\n        'kinto = kinto.__main__:main'\n    ],\n}\n\nDEPENDENCY_LINKS = [\n]\n\nsetup(name='kinto',\n      version='1.11.0.dev0',\n      description='Kinto Web Service - Store, Sync, Share, and Self-Host.',\n      long_description=README + \"\\n\\n\" + CHANGELOG + \"\\n\\n\" + CONTRIBUTORS,\n      license='Apache License (2.0)',\n      classifiers=[\n          \"Programming Language :: Python\",\n          \"Programming Language :: Python :: 2\",\n          \"Programming Language :: Python :: 2.7\",\n          \"Programming Language :: Python :: 3\",\n          \"Programming Language :: Python :: 3.4\",\n          \"Programming Language :: Python :: 3.5\",\n          \"Programming Language :: Python :: Implementation :: CPython\",\n          \"Programming Language :: Python :: Implementation :: PyPy\",\n          \"Topic :: Internet :: WWW/HTTP\",\n          \"Topic :: Internet :: WWW/HTTP :: WSGI :: Application\",\n          \"License :: OSI Approved :: Apache Software License\"\n      ],\n      keywords=\"web services\",\n      author='Mozilla Services',\n      author_email='services-dev@mozilla.com',\n      url='https://github.com/Kinto/kinto',\n      packages=find_packages(),\n      include_package_data=True,\n      zip_safe=False,\n      install_requires=REQUIREMENTS,\n      extras_require={\n          'postgresql': POSTGRESQL_REQUIREMENTS,\n          'monitoring': MONITORING_REQUIREMENTS,\n          'fxa': FXA_REQUIREMENTS,\n      },\n      entry_points=ENTRY_POINTS,\n      dependency_links=DEPENDENCY_LINKS)\n", "path": "setup.py"}]}