"Thor: Ragnarok" director Taika Waititi has just agreed to co-write and direct the pilot for the upcoming "Time Bandits" TV series for Apple.

It's based on the 1981 Terry Gilliam cult film about an 11-year-old named Kevin who travels through time with six dwarfs meeting people like Robin Hood and Napoleon Bonaparte. It featured appearances by his fellow "Monty Python" alums John Cleese and Michael Palin.

Waititi, who directed one of the funniest Marvel movies to date, seems like a perfect match for Gilliam's dark sense of humor. He and Gilliam will both be executive producers, along with Dan Halsted of TBS's "People Of Earth."

Waititi was rumored to take over for James Gunn as director of "Guardians of the Galaxy," but that's not happening. He is, however, going to direct the upcoming "Star Wars" series "The Mandalorian" for Disney+.

And he's also busy with the TV version of  his riotous vampire comedy "What We Do In the Shadows," which he co-wrote and co-directed with "Flight of the Conchords" partner Jemaine Clement. That debuts March 27 on FX. (Set your DVRs.)

[Via Deadline]