update for appengine hrd and python 2.7