Optimizing the Patent Processing Pipeline using Python