Update fanon.py

getting rid of while loop