ValueError: setting an array element with a sequence.
state = np.reshape(state,(1,4)) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.