You need to change your function to iterate instead of recurse.
Example:
def recursionSum(n):
    if n==0:
        return 0
    return n + recursionSum(n-1)
def iterativeSum(n):
    sum = 0
    while(n>0):
        sum += n
        n = n-1 # update parameter and loop again
    return sum
You need to do this because even if your function is tail recursive(doesnt maintain a call frame on the stack after it finishes) python doesnt optimize it. So you cannot use long recursive calls in python. Refactor your code to iterate. Provide your code and I can guide you through the process.  
EDIT: here is something you can read on tail recursion (What is tail recursion?)