Create Nested Array Python Size Function In Rstudio Cloud