Polished Python binding.