<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

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