create table from array python