python: Expose less functions to the Python world.