Automatically rename files after extracting information from pdf files using Python