Discussions between Lavigne 's manager and film executives took place , and director Tim Burton agreed to let Lavigne write the song .
Director Tim Burton agreed , and Lavigne `` wrote the song immediately '' on her piano .