Transform Object To Array Python Practice