Link Python libraries to the _kernel module and nothing else.

Refs #7798
Merge branch 'feature/7798_tcmalloc_memory_reporting' into develop