Create Nested Array Python Example Code