Executes REST API methods in Python and maps to custom classes