Fix misprints

Several misprints in python code.