python interface: also convert first argument to correct type