Using Range In A While Loop Python