It was re-written by David Lindsay-Abaire , and then revised again by Gary Ross when director Sam Raimi and Sony Pictures wanted to take the flick in another direction , the entertainment industry trade newspaper said .