We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Execfile does not exist in py3k
<!--
Thanks for reporting issues of python-telegram-bot!
To make it easier for us to help you please enter detailed information below.

Please note, we only support the latest version of python-telegram-bot and
master branch. Please make sure to upgrade & recreate the issue on the latest
version prior to opening an issue.
-->
### Steps to reproduce
1. Use python 3
2. Try to install from git:
   `$ pip install -e git+https://github.com/python-telegram-bot/python-telegram-bot.git@555e36ee8036a179f157f60dcb0c3fcf958146f4#egg=telegram`
### Expected behaviour

The library should be installed.
### Actual behaviour

NameError due to `execfile` not being a thing in python 3.
See here for alternatives: https://stackoverflow.com/a/437857
I would fix it myself, but I am unable to actually find the execfile call anywhere .-.
### Configuration

**Operating System:**
Windows 10 Education

**Version of Python, python-telegram-bot & dependencies:**
Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)]
### Logs

``````
$ pip install -e git+https://github.com/python-telegram-bot/python-telegram-bot.git@555e36ee8036a179f157f60dcb0c3fcf958146f4#egg=telegram
Obtaining telegram from git+https://github.com/python-telegram-bot/python-telegram-bot.git@555e36ee8036a179f157f60dcb0c3fcf958146f4#egg=telegram
  Skipping because already up-to-date.
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Development\telegram\VocaBot2\src\telegram\setup.py", line 20, in <module>
        execfile(os.path.join('telegram', 'version.py'))
    NameError: name 'execfile' is not defined
Command "python setup.py egg_info" failed with error code 1```
``````


--- 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 """The setup and build script for the python-telegram-bot library."""
3 
4 import codecs
5 import os
6 from setuptools import setup, find_packages
7 
8 
9 def requirements():
10     """Build the requirements list for this project"""
11     requirements_list = []
12 
13     with open('requirements.txt') as requirements:
14         for install in requirements:
15             requirements_list.append(install.strip())
16 
17     return requirements_list
18 
19 
20 def execfile(fn):
21     with open(fn) as f:
22         code = compile(f.read(), fn, 'exec')
23         exec(code)
24 
25 
26 with codecs.open('README.rst', 'r', 'utf-8') as fd:
27     execfile(os.path.join('telegram', 'version.py'))
28 
29     setup(name='python-telegram-bot',
30           version=__version__,
31           author='Leandro Toledo',
32           author_email='devs@python-telegram-bot.org',
33           license='LGPLv3',
34           url='https://github.com/python-telegram-bot/python-telegram-bot',
35           keywords='python telegram bot api wrapper',
36           description='Not just a Python wrapper around the Telegram Bot API',
37           long_description=fd.read(),
38           packages=find_packages(exclude=['tests*']),
39           install_requires=requirements(),
40           include_package_data=True,
41           classifiers=[
42               'Development Status :: 5 - Production/Stable',
43               'Intended Audience :: Developers',
44               'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
45               'Operating System :: OS Independent',
46               'Topic :: Software Development :: Libraries :: Python Modules',
47               'Topic :: Communications :: Chat',
48               'Topic :: Internet',
49               'Programming Language :: Python',
50               'Programming Language :: Python :: 2',
51               'Programming Language :: Python :: 2.6',
52               'Programming Language :: Python :: 2.7',
53               'Programming Language :: Python :: 3',
54               'Programming Language :: Python :: 3.3',
55               'Programming Language :: Python :: 3.4',
56               'Programming Language :: Python :: 3.5',
57           ],)
58
```
--- 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
@@ -16,8 +16,12 @@
 
     return requirements_list
 
+
 with codecs.open('README.rst', 'r', 'utf-8') as fd:
-    execfile(os.path.join('telegram', 'version.py'))
+    fn = os.path.join('telegram', 'version.py')
+    with open(fn) as fh:
+        code = compile(fh.read(), fn, 'exec')
+        exec(code)
 
     setup(name='python-telegram-bot',
           version=__version__,

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -16,8 +16,12 @@\n \n     return requirements_list\n \n+\n with codecs.open('README.rst', 'r', 'utf-8') as fd:\n-    execfile(os.path.join('telegram', 'version.py'))\n+    fn = os.path.join('telegram', 'version.py')\n+    with open(fn) as fh:\n+        code = compile(fh.read(), fn, 'exec')\n+        exec(code)\n \n     setup(name='python-telegram-bot',\n           version=__version__,\n", "issue": "Execfile does not exist in py3k\n<!--\nThanks for reporting issues of python-telegram-bot!\nTo make it easier for us to help you please enter detailed information below.\n\nPlease note, we only support the latest version of python-telegram-bot and\nmaster branch. Please make sure to upgrade & recreate the issue on the latest\nversion prior to opening an issue.\n-->\n### Steps to reproduce\n1. Use python 3\n2. Try to install from git:\n   `$ pip install -e git+https://github.com/python-telegram-bot/python-telegram-bot.git@555e36ee8036a179f157f60dcb0c3fcf958146f4#egg=telegram`\n### Expected behaviour\n\nThe library should be installed.\n### Actual behaviour\n\nNameError due to `execfile` not being a thing in python 3.\nSee here for alternatives: https://stackoverflow.com/a/437857\nI would fix it myself, but I am unable to actually find the execfile call anywhere .-.\n### Configuration\n\n**Operating System:**\nWindows 10 Education\n\n**Version of Python, python-telegram-bot & dependencies:**\nPython 3.5.2 |Continuum Analytics, Inc.| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)]\n### Logs\n\n``````\n$ pip install -e git+https://github.com/python-telegram-bot/python-telegram-bot.git@555e36ee8036a179f157f60dcb0c3fcf958146f4#egg=telegram\nObtaining telegram from git+https://github.com/python-telegram-bot/python-telegram-bot.git@555e36ee8036a179f157f60dcb0c3fcf958146f4#egg=telegram\n  Skipping because already up-to-date.\n    Complete output from command python setup.py egg_info:\n    Traceback (most recent call last):\n      File \"<string>\", line 1, in <module>\n      File \"C:\\Development\\telegram\\VocaBot2\\src\\telegram\\setup.py\", line 20, in <module>\n        execfile(os.path.join('telegram', 'version.py'))\n    NameError: name 'execfile' is not defined\nCommand \"python setup.py egg_info\" failed with error code 1```\n``````\n\n", "before_files": [{"content": "#!/usr/bin/env python\n\"\"\"The setup and build script for the python-telegram-bot library.\"\"\"\n\nimport codecs\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef requirements():\n    \"\"\"Build the requirements list for this project\"\"\"\n    requirements_list = []\n\n    with open('requirements.txt') as requirements:\n        for install in requirements:\n            requirements_list.append(install.strip())\n\n    return requirements_list\n\n\ndef execfile(fn):\n    with open(fn) as f:\n        code = compile(f.read(), fn, 'exec')\n        exec(code)\n\n\nwith codecs.open('README.rst', 'r', 'utf-8') as fd:\n    execfile(os.path.join('telegram', 'version.py'))\n\n    setup(name='python-telegram-bot',\n          version=__version__,\n          author='Leandro Toledo',\n          author_email='devs@python-telegram-bot.org',\n          license='LGPLv3',\n          url='https://github.com/python-telegram-bot/python-telegram-bot',\n          keywords='python telegram bot api wrapper',\n          description='Not just a Python wrapper around the Telegram Bot API',\n          long_description=fd.read(),\n          packages=find_packages(exclude=['tests*']),\n          install_requires=requirements(),\n          include_package_data=True,\n          classifiers=[\n              'Development Status :: 5 - Production/Stable',\n              'Intended Audience :: Developers',\n              'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',\n              'Operating System :: OS Independent',\n              'Topic :: Software Development :: Libraries :: Python Modules',\n              'Topic :: Communications :: Chat',\n              'Topic :: Internet',\n              'Programming Language :: Python',\n              'Programming Language :: Python :: 2',\n              'Programming Language :: Python :: 2.6',\n              'Programming Language :: Python :: 2.7',\n              'Programming Language :: Python :: 3',\n              'Programming Language :: Python :: 3.3',\n              'Programming Language :: Python :: 3.4',\n              'Programming Language :: Python :: 3.5',\n          ],)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n\"\"\"The setup and build script for the python-telegram-bot library.\"\"\"\n\nimport codecs\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef requirements():\n    \"\"\"Build the requirements list for this project\"\"\"\n    requirements_list = []\n\n    with open('requirements.txt') as requirements:\n        for install in requirements:\n            requirements_list.append(install.strip())\n\n    return requirements_list\n\n\nwith codecs.open('README.rst', 'r', 'utf-8') as fd:\n    fn = os.path.join('telegram', 'version.py')\n    with open(fn) as fh:\n        code = compile(fh.read(), fn, 'exec')\n        exec(code)\n\n    setup(name='python-telegram-bot',\n          version=__version__,\n          author='Leandro Toledo',\n          author_email='devs@python-telegram-bot.org',\n          license='LGPLv3',\n          url='https://github.com/python-telegram-bot/python-telegram-bot',\n          keywords='python telegram bot api wrapper',\n          description='Not just a Python wrapper around the Telegram Bot API',\n          long_description=fd.read(),\n          packages=find_packages(exclude=['tests*']),\n          install_requires=requirements(),\n          include_package_data=True,\n          classifiers=[\n              'Development Status :: 5 - Production/Stable',\n              'Intended Audience :: Developers',\n              'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',\n              'Operating System :: OS Independent',\n              'Topic :: Software Development :: Libraries :: Python Modules',\n              'Topic :: Communications :: Chat',\n              'Topic :: Internet',\n              'Programming Language :: Python',\n              'Programming Language :: Python :: 2',\n              'Programming Language :: Python :: 2.6',\n              'Programming Language :: Python :: 2.7',\n              'Programming Language :: Python :: 3',\n              'Programming Language :: Python :: 3.3',\n              'Programming Language :: Python :: 3.4',\n              'Programming Language :: Python :: 3.5',\n          ],)\n", "path": "setup.py"}]}