I want the 3rd party library (Authy) to work without modification in a way that is unlikely to break upon a change in that library, GAE, or the python 2.7 native API. Authy only uses the result of
platform.platform() to create its user agent string for http requests, so it doesn't really matter what it returns. The hack I am currently using, that technically works, is
import platform
platform.platform = lambda aliased=0, terse=0: 'GAE'
This may be as good as it gets until the 3rd party library includes better exception handling, but I am happy to solicit solutions that may be less likely to break.