Python patch