Merge pull request #227 from google/gbg/py11

compatibility with python 11