Trying to solve bug in which numpy.array didnt grow