Toward Python 3 compatibility

For now, just except and print syntax.