Few modifications for python 2 & 3 compatibility.

I see you change a lot of " to '. Does there is a real modification with it in Python 3? (sorry, I am not really up to date with python 3 :-s)