Deprecation warnings removed under py3