Php Return Array As String Python Functions