put gRootModule global variable in PyROOT namespace and add nullptr support