fixup parameters conversion from python