We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Support Python 3.9
Python 3.9 will be released 2020-10-05.

Here are some steps before its release:

* Start testing with prerelease

After release:
* Ensure tests run with released version
* Add 3.9 PyPI classifier
* Enable PYthon wheel building in release

--- 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 # coding=utf-8
2 from __future__ import absolute_import, division, print_function, unicode_literals
3 
4 import os
5 import sys
6 
7 from setuptools import Extension, find_packages, setup
8 
9 with open("README.md", "r") as fp:
10     long_description = fp.read()
11 
12 packages = find_packages("src")
13 if sys.version_info < (3, 6):
14     packages = [p for p in packages if not p.startswith("scout_apm.async_")]
15 
16 compile_extensions = (
17     # Python 3+
18     sys.version_info >= (3,)
19     # Not Jython
20     and not sys.platform.startswith("java")
21     # Not PyPy
22     and "__pypy__" not in sys.builtin_module_names
23     # Not explicitly disabled
24     and (os.environ.get("SCOUT_DISABLE_EXTENSIONS", "") == "")
25 )
26 if compile_extensions:
27     ext_modules = [
28         Extension(
29             name=str("scout_apm.core._objtrace"),
30             sources=[str("src/scout_apm/core/_objtrace.c")],
31             optional=True,
32         )
33     ]
34 else:
35     ext_modules = []
36 
37 setup(
38     name="scout_apm",
39     version="2.16.2",
40     description="Scout Application Performance Monitoring Agent",
41     long_description=long_description,
42     long_description_content_type="text/markdown",
43     url="https://github.com/scoutapp/scout_apm_python",
44     project_urls={
45         "Documentation": "https://docs.scoutapm.com/#python-agent",
46         "Changelog": (
47             "https://github.com/scoutapp/scout_apm_python/blob/master/CHANGELOG.md"
48         ),
49     },
50     author="Scout",
51     author_email="support@scoutapm.com",
52     license="MIT",
53     zip_safe=False,
54     python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4",
55     packages=packages,
56     package_dir={str(""): str("src")},
57     ext_modules=ext_modules,
58     entry_points={
59         "console_scripts": [
60             "core-agent-manager = scout_apm.core.cli.core_agent_manager:main"
61         ]
62     },
63     install_requires=[
64         'asgiref ; python_version >= "3.5"',
65         'importlib-metadata ; python_version < "3.8"',
66         "psutil>=5,<6",
67         'urllib3[secure] < 1.25 ; python_version < "3.5"',
68         'urllib3[secure] < 2 ; python_version >= "3.5"',
69         "wrapt>=1.10,<2.0",
70     ],
71     keywords="apm performance monitoring development",
72     classifiers=[
73         "Development Status :: 5 - Production/Stable",
74         "Framework :: Bottle",
75         "Framework :: Django",
76         "Framework :: Django :: 1.8",
77         "Framework :: Django :: 1.9",
78         "Framework :: Django :: 1.10",
79         "Framework :: Django :: 1.11",
80         "Framework :: Django :: 2.0",
81         "Framework :: Django :: 2.1",
82         "Framework :: Django :: 2.2",
83         "Framework :: Django :: 3.0",
84         "Framework :: Django :: 3.1",
85         "Framework :: Flask",
86         "Framework :: Pyramid",
87         "Intended Audience :: Developers",
88         "Topic :: System :: Monitoring",
89         "License :: OSI Approved :: MIT License",
90         "Operating System :: MacOS",
91         "Operating System :: POSIX",
92         "Operating System :: POSIX :: Linux",
93         "Programming Language :: Python :: 2",
94         "Programming Language :: Python :: 2.7",
95         "Programming Language :: Python :: 3",
96         "Programming Language :: Python :: 3.4",
97         "Programming Language :: Python :: 3.5",
98         "Programming Language :: Python :: 3.6",
99         "Programming Language :: Python :: 3.7",
100         "Programming Language :: Python :: 3.8",
101     ],
102 )
103
```
--- 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
@@ -98,5 +98,6 @@
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
+        "Programming Language :: Python :: 3.9",
     ],
 )

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -98,5 +98,6 @@\n         \"Programming Language :: Python :: 3.6\",\n         \"Programming Language :: Python :: 3.7\",\n         \"Programming Language :: Python :: 3.8\",\n+        \"Programming Language :: Python :: 3.9\",\n     ],\n )\n", "issue": "Support Python 3.9\nPython 3.9 will be released 2020-10-05.\r\n\r\nHere are some steps before its release:\r\n\r\n* Start testing with prerelease\r\n\r\nAfter release:\r\n* Ensure tests run with released version\r\n* Add 3.9 PyPI classifier\r\n* Enable PYthon wheel building in release\n", "before_files": [{"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport sys\n\nfrom setuptools import Extension, find_packages, setup\n\nwith open(\"README.md\", \"r\") as fp:\n    long_description = fp.read()\n\npackages = find_packages(\"src\")\nif sys.version_info < (3, 6):\n    packages = [p for p in packages if not p.startswith(\"scout_apm.async_\")]\n\ncompile_extensions = (\n    # Python 3+\n    sys.version_info >= (3,)\n    # Not Jython\n    and not sys.platform.startswith(\"java\")\n    # Not PyPy\n    and \"__pypy__\" not in sys.builtin_module_names\n    # Not explicitly disabled\n    and (os.environ.get(\"SCOUT_DISABLE_EXTENSIONS\", \"\") == \"\")\n)\nif compile_extensions:\n    ext_modules = [\n        Extension(\n            name=str(\"scout_apm.core._objtrace\"),\n            sources=[str(\"src/scout_apm/core/_objtrace.c\")],\n            optional=True,\n        )\n    ]\nelse:\n    ext_modules = []\n\nsetup(\n    name=\"scout_apm\",\n    version=\"2.16.2\",\n    description=\"Scout Application Performance Monitoring Agent\",\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    url=\"https://github.com/scoutapp/scout_apm_python\",\n    project_urls={\n        \"Documentation\": \"https://docs.scoutapm.com/#python-agent\",\n        \"Changelog\": (\n            \"https://github.com/scoutapp/scout_apm_python/blob/master/CHANGELOG.md\"\n        ),\n    },\n    author=\"Scout\",\n    author_email=\"support@scoutapm.com\",\n    license=\"MIT\",\n    zip_safe=False,\n    python_requires=\">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4\",\n    packages=packages,\n    package_dir={str(\"\"): str(\"src\")},\n    ext_modules=ext_modules,\n    entry_points={\n        \"console_scripts\": [\n            \"core-agent-manager = scout_apm.core.cli.core_agent_manager:main\"\n        ]\n    },\n    install_requires=[\n        'asgiref ; python_version >= \"3.5\"',\n        'importlib-metadata ; python_version < \"3.8\"',\n        \"psutil>=5,<6\",\n        'urllib3[secure] < 1.25 ; python_version < \"3.5\"',\n        'urllib3[secure] < 2 ; python_version >= \"3.5\"',\n        \"wrapt>=1.10,<2.0\",\n    ],\n    keywords=\"apm performance monitoring development\",\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"Framework :: Bottle\",\n        \"Framework :: Django\",\n        \"Framework :: Django :: 1.8\",\n        \"Framework :: Django :: 1.9\",\n        \"Framework :: Django :: 1.10\",\n        \"Framework :: Django :: 1.11\",\n        \"Framework :: Django :: 2.0\",\n        \"Framework :: Django :: 2.1\",\n        \"Framework :: Django :: 2.2\",\n        \"Framework :: Django :: 3.0\",\n        \"Framework :: Django :: 3.1\",\n        \"Framework :: Flask\",\n        \"Framework :: Pyramid\",\n        \"Intended Audience :: Developers\",\n        \"Topic :: System :: Monitoring\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Operating System :: MacOS\",\n        \"Operating System :: POSIX\",\n        \"Operating System :: POSIX :: Linux\",\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 :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport sys\n\nfrom setuptools import Extension, find_packages, setup\n\nwith open(\"README.md\", \"r\") as fp:\n    long_description = fp.read()\n\npackages = find_packages(\"src\")\nif sys.version_info < (3, 6):\n    packages = [p for p in packages if not p.startswith(\"scout_apm.async_\")]\n\ncompile_extensions = (\n    # Python 3+\n    sys.version_info >= (3,)\n    # Not Jython\n    and not sys.platform.startswith(\"java\")\n    # Not PyPy\n    and \"__pypy__\" not in sys.builtin_module_names\n    # Not explicitly disabled\n    and (os.environ.get(\"SCOUT_DISABLE_EXTENSIONS\", \"\") == \"\")\n)\nif compile_extensions:\n    ext_modules = [\n        Extension(\n            name=str(\"scout_apm.core._objtrace\"),\n            sources=[str(\"src/scout_apm/core/_objtrace.c\")],\n            optional=True,\n        )\n    ]\nelse:\n    ext_modules = []\n\nsetup(\n    name=\"scout_apm\",\n    version=\"2.16.2\",\n    description=\"Scout Application Performance Monitoring Agent\",\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    url=\"https://github.com/scoutapp/scout_apm_python\",\n    project_urls={\n        \"Documentation\": \"https://docs.scoutapm.com/#python-agent\",\n        \"Changelog\": (\n            \"https://github.com/scoutapp/scout_apm_python/blob/master/CHANGELOG.md\"\n        ),\n    },\n    author=\"Scout\",\n    author_email=\"support@scoutapm.com\",\n    license=\"MIT\",\n    zip_safe=False,\n    python_requires=\">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4\",\n    packages=packages,\n    package_dir={str(\"\"): str(\"src\")},\n    ext_modules=ext_modules,\n    entry_points={\n        \"console_scripts\": [\n            \"core-agent-manager = scout_apm.core.cli.core_agent_manager:main\"\n        ]\n    },\n    install_requires=[\n        'asgiref ; python_version >= \"3.5\"',\n        'importlib-metadata ; python_version < \"3.8\"',\n        \"psutil>=5,<6\",\n        'urllib3[secure] < 1.25 ; python_version < \"3.5\"',\n        'urllib3[secure] < 2 ; python_version >= \"3.5\"',\n        \"wrapt>=1.10,<2.0\",\n    ],\n    keywords=\"apm performance monitoring development\",\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"Framework :: Bottle\",\n        \"Framework :: Django\",\n        \"Framework :: Django :: 1.8\",\n        \"Framework :: Django :: 1.9\",\n        \"Framework :: Django :: 1.10\",\n        \"Framework :: Django :: 1.11\",\n        \"Framework :: Django :: 2.0\",\n        \"Framework :: Django :: 2.1\",\n        \"Framework :: Django :: 2.2\",\n        \"Framework :: Django :: 3.0\",\n        \"Framework :: Django :: 3.1\",\n        \"Framework :: Flask\",\n        \"Framework :: Pyramid\",\n        \"Intended Audience :: Developers\",\n        \"Topic :: System :: Monitoring\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Operating System :: MacOS\",\n        \"Operating System :: POSIX\",\n        \"Operating System :: POSIX :: Linux\",\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 :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n    ],\n)\n", "path": "setup.py"}]}