Convert 2d Array Into 1d Array Python