Kumail Nanjiani is set for a "Bill and Ted"-style time-traveling adventure in " “Any Person, Living or Dead," but with a big twist.

In the comedy (based on the short story by former "SNL" writer Simon Rich), a brilliant scientist uses his time machine to bring geniuses of the past, from Shakespeare to Aristotle, into the present. He expects them to solve all of humanity's problems: Instead, their ancient ways only bring about murder and mayhem. Now our hero has no choice but to hunt them down and blast them back to the past.

We imagine it will be a bit like the classic "Simpsons' Treehouse of Horror" ep where Homer guns down famous zombies: "Eat lead Einstein!" "Is this the end of zombie Shakespeare?"

Rich will adapt the script with Jonathan Krisel (the exec producer of FX's Baskets") directing. Rich earned several Emmy nominations for his work on "SNL." He also wrote the upcoming Untitled Pickle Comedy starring Seth Rogen.

[Via Variety]