Flatten List Python Using Nested If