Update distribution.py

Fix flipped enable/disable pydoc
Merge pull request #1657 from lorrin/develop

Update distribution.py to fix flipped enable/disable pydoc