Laravel Convert Array To String Python Functions