added a bunch of python API calls