Python Get Dimension Of Array Python Methods