Stdobject To Array Php Functions With Parameters Python