Flat Nested Array Python Definition