renamed python var sum to s