how to check shape of array in python