updated hack for pdf postprocess. Now it is only used for windows platforms and python 2.x