fix a bug with numpy.shape() of the numpy v1.9

```python
np.shape([1,2,3]) 
```
it returns `(3L,)`