I'm assuming scaled_flat1a is a numpy array? In that case, it should be as simple as a reshape command.
import numpy as np
a = np.array([[[[1, 2, 3],
[4, 6, 7]]]])
print(a.shape)
# (1, 1, 2, 3)
a = a.reshape(a.shape[2:]) # You can also use np.reshape()
print(a.shape)
# (2, 3)