doc/mkapiref.py: Support python3.3