Information Extraction From Text Python Code