Add IDIM to the python binding.