[Update]Refactored Python Scripts