python modified