Please update pandoc to 2.5 as the current version is old and gives
Error at "source" (line 9, column 15): unexpected [ \documentclass[10pt]{book}
when parsing Think Python 2. The binary version you can download from Github runs fine.
I'd do this myself but that would require updating some Haskell packages (e.g. R1214) and adding a new one, which would be haskell-hsyaml, as pandoc switched from haskell-yaml to HsYAML. I think it's better to leave some other do that, I'm not even remotely familiar with Haskell.
Tagging @DataDrake as the Haskell master here.
This request is related to T7452.