i have a 1-d array of 1's and 0's in a numpy integer array, i want to pack these values in a array of unsigned 32 bit integer values.

for example, lets say the integer array is

`{0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1`

i want to convert it to this

`{0b01111111111000000000000111111111,0b11111111111111110000111111111111}`

how can i achieve this ? thanks in advance