# Pastebin CZ9oU3xx with open('results.py', 'a') as file: file.write(repr(data))