Link Python libraries to the _kernel module and nothing else.

Refs #7798