modified genbindings.py