python refactor
python doc update