further work on marker cache api, now from python