Python Break Nested Loop