Update parse_go python script and rewrite in go