started with test_api.py
syntax cleanup
clarified log messages and stopped authorization information from being logged