Check If Variable Is An Array Python Memory