Make A Function Repeat In Python