I think you have to use integers

https://github.com/geoadmin/mf-chsdi3/blob/master/chsdi/lib/sphinxapi/sphinxapi.py#L421