Remove trailing semicolons from code

They are not needed in Python.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>