python code for sum of integers