bug fixes oops

in api.py with set_bulk and get_bulk