Major work done on the python API client.