def offset(x, y, z): if not driveboard.status()['ready']: bottle.abort(400, "Machine not ready.") driveboard.def_offset_custom(x, y, z) driveboard.sel_offset_custom() return '{}'