Changes to gsym9.py in order to make it better