Update factorial.py

Added repeat option ad changed some other stuff