making python script runnable for pandoc