Python List Removing Entire List When Nested With

Python List Removing Entire List When Nested With