update examples import, code and python3 compatibility
update examples quotes style and comments