changing warn message, making it Deprecation Warning, and removing negative index for py2.7