Php Return Array As String Python Methods