Using A Function In A Loop Python 3 In