utils: appengine compatibility

simple change to make this compatible with appengine