for i in range(0, len(listOfBalls)):
    if positionTmp == listOfBalls[i].pos:
        stop = 0
if stop == 1:
    pass
Recursion in Python? RuntimeError: maximum recursion depth exceeded while calling a Python object