Porting scripts to be compatible with Python 3.
Changed to Python 3.3.
Merge branch 'py3' into develop