CREATE TABLE table_31036 ("No. in series" FLOAT, "No. in season" FLOAT, "Title" TEXT, "Directed by" TEXT, "Written by" TEXT, "Original air date" TEXT, "Production code" TEXT)

Who wrote the episode with a production code of ip03007?
SELECT "Written by" FROM table_31036 WHERE "Production code" = 'IP03007'
SELECT "Written by" FROM "table_31036" WHERE "Production code" = 'IP03007'