Converting Object To Array Python Question