The "g_" prefix is for module-level variables (modifiable).  All caps is for module constants.  All of the ones you mention are intialized with a value when defined and never changed.

You can see this in our Python style guide which was recently moved to the Github wiki:
https://github.com/numenta/nupic/wiki/Python-Style-Guide#module-global-variables