Fix "maximum recursion depth exceeded while calling a Python object" by using while instead of recursion
Merge pull request #123 from TooAngel/master

"maximum recursion depth exceeded while calling a Python object"