PS: I tried to debug it myself by looking at the code and trying to find any place...
TypeError __str__ returned non-string