American Pie is a 1999 American coming-of-age teen sex comedy film directed and co-produced by Paul Weitz and written by Adam Herz. From Wikipedia
A change from Los Angeles to New York City served as a catalyst for his sustained recovery from addiction.