Finalize 8b7f1eca4fa7b1d8f870b9c85586a4ff2674b0d6's move to `dy_import_module`

That commit changed the dylink imports to use module objects
rather than plopping everything into global scope. This commit
fixes references to `session` functions.