You have an endless loop when you call print() from the print() function. (It is called in the return statement)