python: made pandoc an optional dependency