How To Break Nested Loops In Python