pep issues and deprecation warning