Avoid using exec where possible.
Remove semicolons from Python code.