Convert List To 1d Array Python