Class Object Array Php Format String Python 3