turn off deprecation warnings
Always showing deprecation warnings for the old API is not practical. They should only be shown in development mode. This MR disables deprecation warnings by default. To enable them, run Python with python -W default
or set the PYTHONWARNINGS=default
environment variable.