Remove semi-colon and use print function only

I just did some small transformation to write a more pythonic code. 

Just a small question: are you sure about the line 173 and 206? I think that you should replace the == with a single = in other hand these lines are doing nothing.