Updates to newer syntax

`sum` is a Python builtin.

`import-from` doesn't exist anymore, and `cond` uses square brackets now.