Enable use in Google AppEngine

This is a proper pull request of the contribution made in issue #38.