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

def genkey(outcompressed=True,prefix='80'):
    '''
    Generate new random Bitcoin private key, using os.urandom and
    double-sha256.
    '''

    key = prefix + genkeyhex()
    if outcompressed:
        key = key + '01'
    return b58e(key)