Updated codename.py

Now prints results to a txt file to save them for later.