Create the GPG object

def _create_gpg(user=None, gnupghome=None):
    '''
    Create the GPG object
    '''
    if not gnupghome:
        gnupghome = _get_user_gnupghome(user)

    if GPG_1_3_1:
        gpg = gnupg.GPG(homedir=gnupghome)
    else:
        gpg = gnupg.GPG(gnupghome=gnupghome)

    return gpg