Apply fixes on python script to go code.