Update distribution.py to fix flipped enable/disable pydoc

Fix flipped enable/disable pydoc