Clean up pydoc code, closes #86.