fdb5187705
In older versions of python-gnupg (at least in version 0.4.1 which is the version that gets installed on Ubuntu 14.04) the GPG constructor expects a parameter named `gnupghome` rather than `homedir` and will fail with a TypeError. Add handling of the TypeError and try again with the older parameter name. Change-Id: Ib5f9d652c59e48b6d76e1ddae48d4ae0cad850ba