Php Error Array To String Conversion Python Compiler