[pydocs] fix missing function descriptions on export
Merge pull request #3187 from MartijnKaijser/pydocs2

[pydocs] fix missing function description on export