def sum100(current=2, sequence='1'):
    """Recursive method for finding sequences that sum to 100."""
    if current <= 9:
        sum100(current+1, sequence+str(current))
        if sequence[-1] != u'-' and sequence[-1] != u'+':
            sum100(current, sequence+u'+')
            sum100(current, sequence+u'-')
    else:
        if tot(sequence) == 100:
            print sequence


def tot(sequence, total=0):
    """Helper method for finding total of string sequence.

    plus_minus = 1 or -1"""
    total, counter = 0
    temp = ''
    plus_minus = 1
    while counter < len(sequence):
        try:
            int(sequence[counter])
            temp = temp+sequence[counter]
        except ValueError:
            total = total + (int(temp)*plus_minus)
            temp = ''
            if sequence[counter] == u'-':
                plus_minus = -1
            if sequence[counter] == u'+':
                plus_minus = 1
        counter += 1
    total = total + (int(temp)*plus_minus)
    return total

if __name__ == "__main__":
    sum100()

@@ -472,34 +472,8 @@
 nce.
-%0A%0A    plus_minus = 1 or -1
 %22%22%22%0A
@@ -481,17 +481,18 @@
    total
-,
+ =
  counter
@@ -524,24 +524,61 @@
 us_minus = 1
+      # variable for managing + and -
 %0A    while c
@@ -670,15 +670,11 @@
 emp 
++
 = 
-temp+
 sequ
@@ -728,35 +728,27 @@
       total 
++
 = 
-total + (
 int(temp)*pl
@@ -751,25 +751,24 @@
 )*plus_minus
-)
 %0A           

Clean up code.