refactored some py docs