def create_output_script(pubkey):
    """Create an output script for paying to a pubkey from coinbase."""
    script_len = '41'
    OP_CHECKSIG = 'ac'
    return (script_len + pubkey + OP_CHECKSIG).decode('hex')
