Python Code For Extracting Data With Regular