Docstring comments

Convert method and class comments to docstrings, more aligned with python conventions. Fix functional test for checking api_endpoints to be similar to unit_tests (since client_id and client_secret are required fields) and upped version.