python rest wrappers for the api