update api for pep8 compliance