Removing deprecation warnings for pylint