RE: update api to py3, fixing