prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Python 3.7.0 support
  DeepPavlov has scikit-learn version fixed to v0.19.1, but its c-extensions build fails on python 3.7.0 (at least on macOS), please see [scikit-learn issue](https://github.com/scikit-learn/scikit-learn/issues/11320).
  
  This issue has been fixed in scikit-learn v0.19.2 release, so you have to up at least minor version to enable python 3.7.0 support.
  
  I can try python 3.7.0 compatibility of other packages and prepare a pull-request, if you want.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `deeppavlov/__init__.py`
  Content:
  ```
  1 # Copyright 2017 Neural Networks and Deep Learning lab, MIPT
  2 #
  3 # Licensed under the Apache License, Version 2.0 (the "License");
  4 # you may not use this file except in compliance with the License.
  5 # You may obtain a copy of the License at
  6 #
  7 #     http://www.apache.org/licenses/LICENSE-2.0
  8 #
  9 # Unless required by applicable law or agreed to in writing, software
  10 # distributed under the License is distributed on an "AS IS" BASIS,
  11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 # See the License for the specific language governing permissions and
  13 # limitations under the License.
  14 
  15 import sys
  16 from pathlib import Path
  17 
  18 from .core.common.log import init_logger
  19 
  20 try:
  21     from .configs import configs
  22     # noinspection PyUnresolvedReferences
  23     from .core.commands.infer import build_model
  24     # noinspection PyUnresolvedReferences
  25     from .core.commands.train import train_evaluate_model_from_config
  26     from .download import deep_download
  27     from .core.common.chainer import Chainer
  28 
  29     # TODO: make better
  30     def train_model(config: [str, Path, dict], download: bool = False, recursive: bool = False) -> Chainer:
  31         train_evaluate_model_from_config(config, download=download, recursive=recursive)
  32         return build_model(config, load_trained=True)
  33 
  34     def evaluate_model(config: [str, Path, dict], download: bool = False, recursive: bool = False) -> dict:
  35         return train_evaluate_model_from_config(config, to_train=False, download=download, recursive=recursive)
  36 
  37 except ImportError:
  38     'Assuming that requirements are not yet installed'
  39 
  40 __version__ = '0.4.0'
  41 __author__ = 'Neural Networks and Deep Learning lab, MIPT'
  42 __description__ = 'An open source library for building end-to-end dialog systems and training chatbots.'
  43 __keywords__ = ['NLP', 'NER', 'SQUAD', 'Intents', 'Chatbot']
  44 __license__ = 'Apache License, Version 2.0'
  45 __email__ = 'info@ipavlov.ai'
  46 
  47 # check version
  48 assert sys.hexversion >= 0x3060000, 'Does not work in python3.5 or lower'
  49 
  50 # resolve conflicts with previous DeepPavlov installations versioned up to 0.0.9
  51 dot_dp_path = Path('~/.deeppavlov').expanduser().resolve()
  52 if dot_dp_path.is_file():
  53     dot_dp_path.unlink()
  54 
  55 # initiate logging
  56 init_logger()
  57
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/deeppavlov/__init__.py b/deeppavlov/__init__.py
  --- a/deeppavlov/__init__.py
  +++ b/deeppavlov/__init__.py
  @@ -37,7 +37,7 @@
   except ImportError:
       'Assuming that requirements are not yet installed'
   
  -__version__ = '0.4.0'
  +__version__ = '0.5.0'
   __author__ = 'Neural Networks and Deep Learning lab, MIPT'
   __description__ = 'An open source library for building end-to-end dialog systems and training chatbots.'
   __keywords__ = ['NLP', 'NER', 'SQUAD', 'Intents', 'Chatbot']
  
verification_info: {"golden_diff": "diff --git a/deeppavlov/__init__.py b/deeppavlov/__init__.py\n--- a/deeppavlov/__init__.py\n+++ b/deeppavlov/__init__.py\n@@ -37,7 +37,7 @@\n except ImportError:\n     'Assuming that requirements are not yet installed'\n \n-__version__ = '0.4.0'\n+__version__ = '0.5.0'\n __author__ = 'Neural Networks and Deep Learning lab, MIPT'\n __description__ = 'An open source library for building end-to-end dialog systems and training chatbots.'\n __keywords__ = ['NLP', 'NER', 'SQUAD', 'Intents', 'Chatbot']\n", "issue": "Python 3.7.0 support\nDeepPavlov has scikit-learn version fixed to v0.19.1, but its c-extensions build fails on python 3.7.0 (at least on macOS), please see [scikit-learn issue](https://github.com/scikit-learn/scikit-learn/issues/11320).\r\n\r\nThis issue has been fixed in scikit-learn v0.19.2 release, so you have to up at least minor version to enable python 3.7.0 support.\r\n\r\nI can try python 3.7.0 compatibility of other packages and prepare a pull-request, if you want.\n", "before_files": [{"content": "# Copyright 2017 Neural Networks and Deep Learning lab, MIPT\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport sys\nfrom pathlib import Path\n\nfrom .core.common.log import init_logger\n\ntry:\n    from .configs import configs\n    # noinspection PyUnresolvedReferences\n    from .core.commands.infer import build_model\n    # noinspection PyUnresolvedReferences\n    from .core.commands.train import train_evaluate_model_from_config\n    from .download import deep_download\n    from .core.common.chainer import Chainer\n\n    # TODO: make better\n    def train_model(config: [str, Path, dict], download: bool = False, recursive: bool = False) -> Chainer:\n        train_evaluate_model_from_config(config, download=download, recursive=recursive)\n        return build_model(config, load_trained=True)\n\n    def evaluate_model(config: [str, Path, dict], download: bool = False, recursive: bool = False) -> dict:\n        return train_evaluate_model_from_config(config, to_train=False, download=download, recursive=recursive)\n\nexcept ImportError:\n    'Assuming that requirements are not yet installed'\n\n__version__ = '0.4.0'\n__author__ = 'Neural Networks and Deep Learning lab, MIPT'\n__description__ = 'An open source library for building end-to-end dialog systems and training chatbots.'\n__keywords__ = ['NLP', 'NER', 'SQUAD', 'Intents', 'Chatbot']\n__license__ = 'Apache License, Version 2.0'\n__email__ = 'info@ipavlov.ai'\n\n# check version\nassert sys.hexversion >= 0x3060000, 'Does not work in python3.5 or lower'\n\n# resolve conflicts with previous DeepPavlov installations versioned up to 0.0.9\ndot_dp_path = Path('~/.deeppavlov').expanduser().resolve()\nif dot_dp_path.is_file():\n    dot_dp_path.unlink()\n\n# initiate logging\ninit_logger()\n", "path": "deeppavlov/__init__.py"}], "after_files": [{"content": "# Copyright 2017 Neural Networks and Deep Learning lab, MIPT\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport sys\nfrom pathlib import Path\n\nfrom .core.common.log import init_logger\n\ntry:\n    from .configs import configs\n    # noinspection PyUnresolvedReferences\n    from .core.commands.infer import build_model\n    # noinspection PyUnresolvedReferences\n    from .core.commands.train import train_evaluate_model_from_config\n    from .download import deep_download\n    from .core.common.chainer import Chainer\n\n    # TODO: make better\n    def train_model(config: [str, Path, dict], download: bool = False, recursive: bool = False) -> Chainer:\n        train_evaluate_model_from_config(config, download=download, recursive=recursive)\n        return build_model(config, load_trained=True)\n\n    def evaluate_model(config: [str, Path, dict], download: bool = False, recursive: bool = False) -> dict:\n        return train_evaluate_model_from_config(config, to_train=False, download=download, recursive=recursive)\n\nexcept ImportError:\n    'Assuming that requirements are not yet installed'\n\n__version__ = '0.5.0'\n__author__ = 'Neural Networks and Deep Learning lab, MIPT'\n__description__ = 'An open source library for building end-to-end dialog systems and training chatbots.'\n__keywords__ = ['NLP', 'NER', 'SQUAD', 'Intents', 'Chatbot']\n__license__ = 'Apache License, Version 2.0'\n__email__ = 'info@ipavlov.ai'\n\n# check version\nassert sys.hexversion >= 0x3060000, 'Does not work in python3.5 or lower'\n\n# resolve conflicts with previous DeepPavlov installations versioned up to 0.0.9\ndot_dp_path = Path('~/.deeppavlov').expanduser().resolve()\nif dot_dp_path.is_file():\n    dot_dp_path.unlink()\n\n# initiate logging\ninit_logger()\n", "path": "deeppavlov/__init__.py"}]}