Possible fix for difference with App Engine Python