modify encoding comment and add 'python3' comment in python3 code