Python Get Dimension Of Array Python Initialize Class