mkapidocs.py: fix namespace protection scope (should be public)