Started solving style issues pointed out by cdunklau (in #python); began implementing API endpoints.