Extracting data from a text file with Python,print('\n'.join(to_search[NAME]))