pylint disable using new instead of deprecated