Python - Debugging + sum stuff