Using Range In While Loop Python Break In Nested