deployment api test, some pep8 cleanup