addgmlids.py copied to master branch